aboutsummaryrefslogtreecommitdiffstats
path: root/testing/neard/APKBUILD
blob: 6ce4dcaeb69782e8f2768a1c3ade1a27f697ea6b (plain) (blame)
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
# Contributor: Minecrell <minecrell@minecrell.net>
# Maintainer: Minecrell <minecrell@minecrell.net>
pkgname=neard
pkgver=0.16
pkgrel=0
pkgdesc="Near Field Communication manager"
url="https://01.org/linux-nfc/"
arch="all"
license="GPL-2.0-only"
depends="dbus"
makedepends="glib-dev dbus-dev libnl-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="
	https://cdn.kernel.org/pub/linux/network/nfc/$pkgname-$pkgver.tar.xz
	neard.initd
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-systemd \
		--enable-tools
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	# Avoid conflicts with other packages
	mv "$pkgdir"/usr/include/version.h "$pkgdir"/usr/include/near/version.h

	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

sha512sums="d0fd5dcfd19db64e65e4149c76979bc7a438240aa6840b35059fde41a8a84a2424274577de964a925e76cd013d21796f69f5361012b6ac79c546d0abdcfed2a6  neard-0.16.tar.xz
40703a50d50af5d34ce07d5e4c2c074b198c408cad86057ffcbe776e604dc33165bcf21fba29b49bbe7e96d9c758f4db435816299982813bfe18099e3c6efbbd  neard.initd"