aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinecrell <minecrell@minecrell.net>2019-08-25 12:07:36 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-08-25 12:37:19 -0300
commit99c2ae25d38e5277f797a8a82e9b396e70ab44c9 (patch)
tree95a2e75aba9fac6d256c5ea6919cdbc75aca2f9a
parent7e9a521117f7761e013de003c9856e02a0812106 (diff)
downloadaports-99c2ae25d38e5277f797a8a82e9b396e70ab44c9.tar.bz2
aports-99c2ae25d38e5277f797a8a82e9b396e70ab44c9.tar.xz
testing/neard: new aport
-rw-r--r--testing/neard/APKBUILD45
-rw-r--r--testing/neard/neard.initd11
2 files changed, 56 insertions, 0 deletions
diff --git a/testing/neard/APKBUILD b/testing/neard/APKBUILD
new file mode 100644
index 0000000000..6ce4dcaeb6
--- /dev/null
+++ b/testing/neard/APKBUILD
@@ -0,0 +1,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"
diff --git a/testing/neard/neard.initd b/testing/neard/neard.initd
new file mode 100644
index 0000000000..84e0539398
--- /dev/null
+++ b/testing/neard/neard.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+supervisor=supervise-daemon
+
+name="NFC"
+command="/usr/libexec/nfc/neard"
+command_args_foreground="--nodaemon"
+
+depend() {
+ after coldplug
+ need dbus
+}