diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-15 22:42:06 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-15 22:42:06 -0400 |
commit | 83be5d23a4dc3730cf880135c31f27825b20e9c0 (patch) | |
tree | 20667fdf11984a240d46b7c75e2c338ab3641c13 /libre | |
parent | 379d0d624cf5ba49c284b79e9379a28c79223d55 (diff) | |
download | abslibre-83be5d23a4dc3730cf880135c31f27825b20e9c0.tar.gz abslibre-83be5d23a4dc3730cf880135c31f27825b20e9c0.tar.bz2 abslibre-83be5d23a4dc3730cf880135c31f27825b20e9c0.zip |
add libre/parabola-hackers
Diffstat (limited to 'libre')
-rw-r--r-- | libre/parabola-hackers/PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/libre/parabola-hackers/PKGBUILD b/libre/parabola-hackers/PKGBUILD new file mode 100644 index 000000000..266c413e2 --- /dev/null +++ b/libre/parabola-hackers/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgbase=parabola-hackers +pkgname=(parabola-hackers nshd) +pkgver=20160516 +_gitver=a99b31c556020859a5440ffce5409499034f8382 +pkgdesc='Programs for doing magic with hackers.git' +url='https://projects.parabola.nu/packages/parabola-hackers.git/' +license=('GPL') + +pkgrel=1 +arch=('x86_64' 'i686') +makedepends=('go') +source=("https://repo.parabola.nu/other/$pkgbase/$pkgbase-$pkgver.tar.gz") +md5sums=('4eb38ced2486ab2a3d2fc5b6c9b935c1') + +# Don't use mksource=(git://...) because we need --recursive +mksource() { + cd "$srcdir" + git clone --recursive git://projects.parabola.nu/packages/parabola-hackers.git $pkgbase-$pkgver + cd $pkgbase-$pkgver + git checkout $_gitver + make generate +} + +build() { + cd "$srcdir/$pkgbase-$pkgver" + make \ + prefix='/usr' \ + bindir='$(libexecdir)/$(PACKAGE)' \ + libexecdir='$(libdir)' \ + sysconfdir='/etc' +} + +package_parabola-hackers() { + backup=(etc/$pkgbase.yml) + depends=('ruby') + + cd "$srcdir/$pkgbase-$pkgver" + make DESTDIR="${pkgdir}" install \ + prefix='/usr' \ + bindir='$(libexecdir)/$(PACKAGE)' \ + libexecdir='$(libdir)' \ + sysconfdir='/etc' + find "$pkgdir" -type f -name 'nshd*' -delete + find "$pkgdir" -type d -empty -exec rmdir -p --ignore-fail-on-non-empty -- {} + +} + +package_nshd() { + pkgdesc='NSS and PAM integration for parabola-hackers' + depends=("parabola-hackers=$pkgver" 'nss-pam-ldapd') + + cd "$srcdir/$pkgbase-$pkgver" + make DESTDIR="${pkgdir}" install \ + prefix='/usr' \ + bindir='$(libexecdir)/$(PACKAGE)' \ + libexecdir='$(libdir)' \ + sysconfdir='/etc' + find "$pkgdir" -type f -not -name 'nshd*' -delete + find "$pkgdir" -type d -empty -exec rmdir -p --ignore-fail-on-non-empty -- {} + +} |