aboutsummaryrefslogtreecommitdiffstats
path: root/main/aports-build/APKBUILD
blob: 0c6d59dcfd22d1c7c6db40a1efbd9b8578b0575d (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.3
pkgrel=3
pkgdesc="MQTT based build-on-git-push scripts for Alpine Linux"
url="http://alpinelinux.org"
arch="noarch"
license="GPL2"
depends="mosquitto-utils alpine-sdk mqtt-exec rsync"
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="f859929d94bb3a96c2d5c48135190ce2  aports-build
784238e965ca025c0c6ed13c8af01613  aports-build.initd
cdc49e0ef145de72131972a575f20e7b  aports-build.confd"
sha256sums="b66dfe9670ede1ed1e95e667bf4862e78258a9ef8c45d4ceb16101aa608e2edd  aports-build
88215b5969e5ffeda549c6e31de4563569ddee2ac3220c381d40f382d43f8323  aports-build.initd
519744cdb4be83e5da1c22d4aa93c7ef97d66e03565e84b710bc21c94b82047e  aports-build.confd"
sha512sums="57cd574e740a74c9f3d6a15ce3a5c7930617219b443ff293db91bc49de3fcb6fe382dd7fc5be3d8d1ab5d98707637d31a270b4356ea47ffa6a1120e7908a8f33  aports-build
2ef2fa6de4118209ab93a56216f106ac32078df762f4d67e900976c28bea96d44806f4679ef966472a3eb05fdaf1648aab17c0eaa897e8a06b1272766f29d22b  aports-build.initd
fbe8ed4b1fbfc979de62302873e99c67bab751a7fcd921c3b23815f535cedb34c717e82b3c223f88e06498a573cbd147a73db7bf5adbb5e1947ac75fcb8edcb4  aports-build.confd"