aboutsummaryrefslogtreecommitdiffstats
path: root/testing/neard/APKBUILD
blob: 7defd290bf6f93496b663076128b430ad4dc95d0 (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
51
52
53
54
55
56
57
58
59
60
61
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=neard
pkgver=0.14
pkgrel=0
pkgdesc="Near Field Communication manager"
url="https://01.org/linux-nfc/"
arch="all"
license="GPLv2"
depends=""
depends_dev=""
makedepends="$depends_dev glib-dev dbus-dev libnl3-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.kernel.org/pub/linux/network/nfc/neard-$pkgver.tar.xz
	neard.initd
	"

_builddir="$srcdir"/neard-$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
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

	install -d "$pkgdir"/etc/conf.d "$pkgdir"/etc/init.d
	echo 'NEARD_OPTS=""' > "$pkgdir"/etc/conf.d/neard

	install -m755 "$srcdir"/neard.initd "$pkgdir"/etc/init.d/neard \
		|| return 1

}

md5sums="692ba2653d60155255244c87396c486b  neard-0.14.tar.xz
ae70699a277238d9b64f2c457e987996  neard.initd"
sha256sums="6ea724b443d39d679168fc7776a965d1f64727c3735391df2c01469ee7cd8cca  neard-0.14.tar.xz
df6f500b1e4eb113dc1d0a4c18c62c4007c8559ef5206d1425d88d1079b653f6  neard.initd"
sha512sums="e5a3caac5be088047f18f6998ce6a13ae50f671c864d658237310abd8c587a0b34cc11a81e7d1e69223458215eac583e3935c799bdc0b301ee41bbfd27e28cac  neard-0.14.tar.xz
fb461dc3b8173ea6282357e39f3c4639784b7221fddda8c9b50799ded85ec60eb2fa1ccd516558e97a9e7840beab29b9c613950f7ee872c7ab0433207409bbc1  neard.initd"