From f1370417f1ec81176aa5b4ca7188ad46dbdf565b Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernández Date: Tue, 19 Oct 2010 15:50:12 -0500 Subject: Agregado PKGBUILD para git --- PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4881fc8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Contributor: fauno +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/ +} + -- cgit v1.2.3-54-g00ecf