summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2010-10-19 15:50:12 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2010-10-19 15:50:12 -0500
commitf1370417f1ec81176aa5b4ca7188ad46dbdf565b (patch)
tree96d10a13ed7198e3bb4384e07c26763384f5e21f /PKGBUILD
parentb69913faf918304d49b7009240f2f8c77583a19d (diff)
Agregado PKGBUILD para git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
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/
+}
+