summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-02-07 18:08:39 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-02-07 18:08:39 -0300
commit59dae79e5a199052c0a0a6726a8adbc94b6f3d51 (patch)
treec3e0446877f8ef77cefccbab21b020661a108c82
parent356694bab23ea8d4e55fa2badee08679e60c52d0 (diff)
downloadabslibre-59dae79e5a199052c0a0a6726a8adbc94b6f3d51.tar.gz
abslibre-59dae79e5a199052c0a0a6726a8adbc94b6f3d51.tar.bz2
abslibre-59dae79e5a199052c0a0a6726a8adbc94b6f3d51.zip
libretools-20110207-1
-rw-r--r--libre/libretools/PKGBUILD51
-rw-r--r--libre/libretools/libretools.install33
2 files changed, 84 insertions, 0 deletions
diff --git a/libre/libretools/PKGBUILD b/libre/libretools/PKGBUILD
new file mode 100644
index 000000000..ad9264063
--- /dev/null
+++ b/libre/libretools/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Joshua Haase <hahj87@gmail.com
+# Contributor: fauno <fauno@kiwwwi.com.ar>
+
+pkgname=libretools
+pkgver=$(date +%Y%m%d)
+pkgrel=1
+pkgdesc="Scripts for easing Parabola's tasks"
+arch=('any')
+url="http://parabolagnulinux.org"
+license=('GPL3+')
+depends=(wget pacman devtools)
+makedepends=(git)
+backup=(etc/libretools.conf)
+install=libretools.install
+source=(libretools.install)
+md5sums=('07d2e7b0a1250d888fccc10969c7f436')
+
+_gitroot="http://projects.parabolagnulinux.org/libretools.git"
+_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 ${_gitname}/libretools.conf ${pkgdir}/etc/
+
+
+ install -m755 ${_gitname}/librechroot ${pkgdir}/usr/bin/
+ install -m755 ${_gitname}/librecommit ${pkgdir}/usr/bin/
+ install -m755 ${_gitname}/libremakepkg ${pkgdir}/usr/bin/
+ install -m755 ${_gitname}/librediff ${pkgdir}/usr/bin/
+ install -m755 ${_gitname}/librerelease ${pkgdir}/usr/bin/
+ install -m755 ${_gitname}/pkgbuild-check-nonfree ${pkgdir}/usr/bin/
+
+}
+
diff --git a/libre/libretools/libretools.install b/libre/libretools/libretools.install
new file mode 100644
index 000000000..d2876ffba
--- /dev/null
+++ b/libre/libretools/libretools.install
@@ -0,0 +1,33 @@
+
+# arg 1: the new package version
+post_install() {
+ cat <<EOF
+
+For using libremakepkg /etc/libretools.conf to fit your needs.
+
+For the scripts that can be run as normal user you can make
+custom configuration by copying /etc/libretools.conf to
+\$XDG_CONFIG_HOME/libretools/libretools.conf
+
+You should add this to your ~/.ssh/config file:
+
+# Parabola Host
+Host parabola
+ Port 22
+ HostName repo.parabolagnulinux.org
+ User parabolavnx
+ IdentityFile ~/.ssh/id_rsa
+# End Parabola Host
+
+Edit IdentityFile as needed.
+
+EOF
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ post_install
+}
+
+# vim:set ts=2 sw=2 et: