summaryrefslogtreecommitdiffstats
path: root/main/aports-build/APKBUILD
blob: 9bf07e27c91aba68c601510f01c32c78f18c6831 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=aports-build
pkgver=0.7
pkgrel=0
pkgdesc="MQTT based build-on-git-push scripts for Alpine Linux"
url="http://alpinelinux.org"
arch="noarch"
license="GPL2"
depends="abuild>2.20.0 mosquitto-clients alpine-sdk mqtt-exec rsync lua-aports"
depends_dev=""
makedepends="$depends_dev mosquitto-dev"
install="$pkgname.pre-install"
subpackages=""

source="aports-build aports-build.initd aports-build.confd"

_builddir=
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
}

build() {
	cd "$_builddir"
}

package() {
	cd "$_builddir"
	install -Dm755 "$srcdir"/aports-build \
		"$pkgdir"/usr/bin/aports-build || return 1
	install -Dm755 "$srcdir"/aports-build.initd \
		"$pkgdir"/etc/init.d/aports-build || return 1
	install -Dm644 "$srcdir"/aports-build.confd \
		"$pkgdir"/etc/conf.d/aports-build || return 1
}

md5sums="982706003f6e1994ff7621efed2b4b42  aports-build
784238e965ca025c0c6ed13c8af01613  aports-build.initd
711d8f441b97c54a9561c08925d16d75  aports-build.confd"
sha256sums="2c1e3bfd2ab6687c1ed90dcfe1814f660b6cc52dfaeaf7783d93a247dfcd31cd  aports-build
88215b5969e5ffeda549c6e31de4563569ddee2ac3220c381d40f382d43f8323  aports-build.initd
e14940240ffac141b98903214af858c93a36b5a9f133b97a81871f9d56efff6b  aports-build.confd"
sha512sums="527a6e52bcf506f03059055865a7ab785f7fc65114e252639165d209228c9a389c8f9a425958ad3dea3ab25a962629e91239b2c8568de1a45681430ea453e216  aports-build
2ef2fa6de4118209ab93a56216f106ac32078df762f4d67e900976c28bea96d44806f4679ef966472a3eb05fdaf1648aab17c0eaa897e8a06b1272766f29d22b  aports-build.initd
60c62f25834fce29df73b0e64b733c8b9bbd362c130d04ba33f8dbf042b6b7fbb6193beb84ba9c811b3aef1997675bbb3eeedbbf935e4ae005370c4b4a013d26  aports-build.confd"