diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4881fc8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Contributor: fauno <fauno@kiwwwi.com.ar> +pkgname=libretools +pkgver=$(date +%Y%m%d) +pkgrel=3 +pkgdesc="Scripts for easing Parabola's tasks" +arch=('any') +url="http://parabolagnulinux.org" +license=('GPL3+') +depends=(wget pacman) +makedepends=(git) +backup=(etc/libretools.conf) +install=libretools.install +source=(libretools.install) +md5sums=('35323c98f82edd0a410fd3372c0de947') +_gitroot="http://www.parabolagnulinux.org/projects/libretools.git" # Asumming setup for libretools +_gitname="libretools" + +build() { + cd "$srcdir" + ## Git checkout + if [ -d $srcdir/${_gitname} ] ; then + msg "Git checkout: Updating existing tree" + cd ${_gitname} && git pull origin + msg "Git checkout: Tree has been updated" + else + msg "Git checkout: Retrieving sources" + git clone ${_gitroot} + fi + msg "Checkout completed" + ## Build +} + +package() { + install -d ${pkgdir}/usr/bin + install -d ${pkgdir}/etc + + install -m644 libretools.conf ${pkgdir}/etc/ + install -m755 libre* ${pkgdir}/usr/bin/ + install -m755 pkgbuild-check-nonfree ${pkgdir}/usr/bin/ +} + |