diff options
author | Alan Lacerda <alacerda@alpinelinux.org> | 2015-07-16 12:38:15 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-07-16 13:22:16 +0000 |
commit | 72bce2ba9e5c17a628a94ffea6e0aa232f7eda5b (patch) | |
tree | f11c1897b34141574e8b56b3e53b7ba00b8f9004 /main/setup-box | |
parent | bef9d06c0c3c7a973611a1eee4cbf64df71fc82e (diff) | |
download | aports-72bce2ba9e5c17a628a94ffea6e0aa232f7eda5b.tar.bz2 aports-72bce2ba9e5c17a628a94ffea6e0aa232f7eda5b.tar.xz |
main/setup-box: move from testing
Diffstat (limited to 'main/setup-box')
-rw-r--r-- | main/setup-box/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/setup-box/APKBUILD b/main/setup-box/APKBUILD new file mode 100644 index 0000000000..66fa5b2b34 --- /dev/null +++ b/main/setup-box/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Alan Lacerda <alacerda@alpinelinux.org> +# Maintainer: Alan Lacerda <alacerda@alpinelinux.org> +pkgname=setup-box +pkgver=1.0.1 +pkgrel=0 +pkgdesc="A tool to setup a variety of Alpine Linux Environments" +url="http://git.alpinelinux.org/cgit/alacerda/setup-box/" +arch="noarch" +license="MIT" +depends="jq" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.bz2" + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +doc () { + mkdir -p "$subpkgdir"/usr/share/man/man1 || return 1 + mv "$_builddir"/usr/share/man/setup-box.1.gz "$subpkgdir"/usr/share/man/man1/ || return 1 +} + +build() { + cd "$_builddir" +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir"/etc/setup-box/json + mkdir "$pkgdir"/sbin + install -m 755 setup-box "$pkgdir"/sbin/$pkgname + cp json/* "$pkgdir"/etc/setup-box/json + sed -e 's:@CONFIG_DIR@:/etc/setup-box:g' -i "$pkgdir"/sbin/$pkgname + sed -e 's:@JSON_DIR@:/etc/setup-box/json:g' -i "$pkgdir"/sbin/$pkgname + sed -e 's:@VERSION@:v$pkgver:g' -i "$pkgdir"/sbin/$pkgname +} + +md5sums="4fde92c55bada419c2fa91d1558d8665 setup-box-1.0.1.tar.bz2" +sha256sums="14a6d966f31a7e9509d21af01e2e37f38bdb14af5ec568a4e03446f8458144e5 setup-box-1.0.1.tar.bz2" +sha512sums="22891037b4a0ed8a60103959e21b2d99e4bdf0a518419141623373b6a7a1c0160c8bd761ca81637bef069078849d06952817eaef83fd5c426ae9693329c29e48 setup-box-1.0.1.tar.bz2" |