summaryrefslogtreecommitdiff
path: root/libre/parabola-hackers
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2020-02-02 11:29:54 +0100
committerAndreas Grapentin <andreas@grapentin.org>2020-02-02 11:29:54 +0100
commit26794af5e6f2f7fe7e15804b21ac67f75b8efd1f (patch)
tree4199ca4e280a48ec9690c23bb71e2a12d4d4fac6 /libre/parabola-hackers
parent3f09c1b49ffa7bc556cdb3182993cc4bdcab5ba3 (diff)
downloadabslibre-26794af5e6f2f7fe7e15804b21ac67f75b8efd1f.tar.gz
abslibre-26794af5e6f2f7fe7e15804b21ac67f75b8efd1f.tar.bz2
abslibre-26794af5e6f2f7fe7e15804b21ac67f75b8efd1f.zip
libre/parabola-hackers: updated to 20200202
Diffstat (limited to 'libre/parabola-hackers')
-rw-r--r--libre/parabola-hackers/PKGBUILD115
1 files changed, 78 insertions, 37 deletions
diff --git a/libre/parabola-hackers/PKGBUILD b/libre/parabola-hackers/PKGBUILD
index 1b81a3f84..0790a46e2 100644
--- a/libre/parabola-hackers/PKGBUILD
+++ b/libre/parabola-hackers/PKGBUILD
@@ -3,60 +3,101 @@
pkgbase=parabola-hackers
pkgname=(parabola-hackers parabola-hackers-nshd)
pkgver=20180426
+_gitver=a2b650881c7d263c60614debf83ea81aab92be27
pkgdesc='Programs for doing magic with hackers.git'
url='https://git.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"{,.sig})
-sha256sums=('ef1e1897e9801be2d2da2d47d9d4f60dc03594817bd6628df0a0e2526c673aa5'
+arch=('x86_64')
+makedepends=('go' 'git')
+source=("parabola-hackers::git://git.parabola.nu/packages/parabola-hackers.git#commit=${_gitver}"
+ LICENSE.lgpl-2.1.txt::https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
+ LICENSE.gpl-2.txt::https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
+ LICENSE.apache-2.0.txt::https://www.apache.org/licenses/LICENSE-2.0
+ LICENSE.wtfpl-2.txt::http://www.wtfpl.net/txt/copying/)
+_gomodules=("git.lukeshu.com/go/libgnulinux#branch=master"
+ "git.lukeshu.com/go/libnslcd#branch=master"
+ "git.lukeshu.com/go/libsystemd#commit=0a43955"
+ "github.com/pkg/errors#tag=v0.8.0"
+ "go.googlesource.com/sys#commit=bb9c189"
+ "gopkg.in/check.v1#commit=20d25e2"
+ "gopkg.in/yaml.v2#commit=5420a8b")
+for _gomodule in "${_gomodules[@]}"; do
+ source+=("gopkg-$(sed -e 's/#.*//' -e 's/\//_/g' <<<"$_gomodule")::git+https://$_gomodule")
+done
+sha256sums=('SKIP'
+ 'dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551'
+ '8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643'
+ 'cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30'
+ '0356258391e190dc1d44ea01565cfe627fe44e27dad693a0a54c2483a7b223e5'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
'SKIP')
-validpgpkeys=('99195DD3BB6FE10A2F36ED8445698744D4FFBFC9') # Luke Shumaker
-build() {
- cd "$srcdir/$pkgbase-$pkgver"
+pkgver() {
+ cd "$srcdir/$pkgbase"
+ grep VERSION < config.mk | awk '{print $3}'
+}
+
+prepare() {
+ mv -Tv gopkg-go.googlesource.com_sys "$srcdir/$pkgbase"/go/src/golang.org/x/sys
+ for gopkg in gopkg-*; do
+ mv -Tv "$gopkg" "$srcdir/$pkgbase"/go/src/"$(sed 's/_/\//g' <<<"${gopkg#gopkg-}")"
+ done
+
+ cd "$srcdir/$pkgbase"
+
+ printf '%s\n' \
+ prefix='/usr' \
+ bindir='$(libexecdir)/$(PACKAGE)' \
+ libexecdir='$(libdir)' \
+ sysconfdir='/etc' \
+ >> config.mk
- printf '%s\n' \
- prefix='/usr' \
- bindir='$(libexecdir)/$(PACKAGE)' \
- libexecdir='$(libdir)' \
- sysconfdir='/etc' \
- >> config.mk
+ mv -v "$srcdir"/LICENSE* .
- make
+ git submodule update --init
+}
+
+build() {
+ cd "$srcdir/$pkgbase"
+ make
}
check() {
- cd "$srcdir/$pkgbase-$pkgver"
- make check
+ cd "$srcdir/$pkgbase"
+ make check
}
package_parabola-hackers() {
- backup=(etc/$pkgbase.yml)
- depends=('ruby' 'colordiff')
+ backup=(etc/$pkgbase.yml)
+ depends=('ruby' 'colordiff')
- cd "$srcdir/$pkgbase-$pkgver"
- make DESTDIR="${pkgdir}" install
- find "$pkgdir" -type f \( -name 'nshd*' -o -name shadow \) -delete
- find "$pkgdir" -type d -empty -exec rmdir -p --ignore-fail-on-non-empty -- {} +
+ cd "$srcdir/$pkgbase"
+ make DESTDIR="${pkgdir}" install
+ find "$pkgdir" -type f \( -name 'nshd*' -o -name shadow \) -delete
+ find "$pkgdir" -type d -empty -exec rmdir -p --ignore-fail-on-non-empty -- {} +
}
package_parabola-hackers-nshd() {
- pkgdesc='NSS and PAM integration for parabola-hackers'
- license=('GPL3')
- depends=("parabola-hackers=$pkgver" 'nss-pam-ldapd')
- backup=(etc/nshd/shadow)
- install=parabola-hackers-nshd.install
- replaces=(nshd)
- conflicts=(nshd)
-
- cd "$srcdir/$pkgbase-$pkgver"
- make DESTDIR="${pkgdir}" install
- find "$pkgdir" -type f -not \( -name 'nshd*' -o -name shadow \) -delete
- find "$pkgdir" -type d -empty -exec rmdir -p --ignore-fail-on-non-empty -- {} +
-
- install -d "${pkgdir}/usr/share/licenses/${pkgname}"
- cp -t "${pkgdir}/usr/share/licenses/${pkgname}" -- LICENSE.txt LICENSE.bsd*.txt
+ pkgdesc='NSS and PAM integration for parabola-hackers'
+ license=('GPL3')
+ depends=("parabola-hackers=$pkgver" 'nss-pam-ldapd')
+ backup=(etc/nshd/shadow)
+ install=parabola-hackers-nshd.install
+ replaces=(nshd)
+ conflicts=(nshd)
+
+ cd "$srcdir/$pkgbase"
+ make DESTDIR="${pkgdir}" install
+ find "$pkgdir" -type f -not \( -name 'nshd*' -o -name shadow \) -delete
+ find "$pkgdir" -type d -empty -exec rmdir -p --ignore-fail-on-non-empty -- {} +
+
+ install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ cp -t "${pkgdir}/usr/share/licenses/${pkgname}" -- LICENSE.txt LICENSE.bsd*.txt
}