blob: b467daa3dd3a19c563c5b8a41b48277169f39907 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Charles Duffy <charles@dyfis.net>
pkgname=ns-exec-tools-git
pkgver=r6.447b31a
pkgrel=1
pkgdesc="Lightweight, execline-style tools to build restricted Linux namespaces"
arch=( any )
url="https://github.com/charles-dyfis-net/ns-exec-tools"
license=( ISC )
depends=( lxc util-linux )
conflicts=( "${pkgname%-git}" )
source=( 'ns-exec-tools::git+https://github.com/charles-dyfis-net/ns-exec-tools' )
sha1sums=( SKIP )
pkgver() {
cd "${pkgname%-git}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() { :; }
package() {
cd "${pkgname%-git}"
mkdir -p \
"$pkgdir/usr/share/doc/$pkgname" \
"$pkgdir/usr/share/licenses/$pkgname" \
"$pkgdir/usr/bin"
cp README.md "$pkgdir/usr/share/doc/$pkgname/"
cp LICENSE "$pkgdir/usr/share/licenses/$pkgname/"
cp [[:lower:]]* "$pkgdir/usr/bin/"
}
|