summaryrefslogtreecommitdiff
path: root/main/setup-box/APKBUILD
blob: cb05560a65cc3c51f511c84068b3939674e17446 (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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=setup-box
pkgver=1.0.1
pkgrel=1
pkgdesc="A tool to setup a variety of Alpine Linux Environments"
url="https://git.alpinelinux.org/cgit/alacerda/setup-box/"
arch="noarch"
license="MIT"
depends="jq"
subpackages="$pkgname-doc"
source="https://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.bz2"

build() {
	sed -i \
		-e 's:@CONFIG_DIR@:/etc/setup-box:g' \
		-e 's:@JSON_DIR@:/etc/setup-box/json:g' \
		-e 's:@VERSION@:v$pkgver:g' \
		setup-box
}

package() {
	install -Dm755 setup-box -t "$pkgdir"/sbin
	install -Dm644 json/* -t "$pkgdir"/etc/setup-box/json
	install -Dm644 usr/share/man/setup-box.1.gz -t "$pkgdir"/usr/share/man/man1
}

sha512sums="22891037b4a0ed8a60103959e21b2d99e4bdf0a518419141623373b6a7a1c0160c8bd761ca81637bef069078849d06952817eaef83fd5c426ae9693329c29e48  setup-box-1.0.1.tar.bz2"