New package: neard-0.18

This commit is contained in:
Jami Kettunen 2022-02-10 09:54:01 +02:00 committed by Echo
parent dd78dc68ed
commit 3b6075f00e
7 changed files with 64 additions and 0 deletions

1
srcpkgs/neard-devel Symbolic link
View file

@ -0,0 +1 @@
neard

View file

@ -0,0 +1 @@
/usr/bin/vlogger

View file

@ -0,0 +1,4 @@
#!/bin/sh
sv check dbus >/dev/null || exit 1
[ -r conf ] && . ./conf
exec /usr/libexec/nfc/neard --nodaemon ${OPTS}

View file

@ -0,0 +1 @@
/usr/bin/vlogger

View file

@ -0,0 +1,4 @@
#!/bin/sh
sv check dbus >/dev/null || exit 1
[ -r conf ] && . ./conf
exec /usr/libexec/nfc/seeld --nodaemon ${OPTS}

View file

@ -0,0 +1,17 @@
Sent as upstream PR: https://github.com/linux-nfc/neard/pull/15
---
diff --git a/Makefile.am b/Makefile.am
index 26aa4ca..1ff5d31 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -111,6 +111,10 @@ dbusdir = ${sysconfdir}/dbus-1/system.d/
dist_dbus_DATA = src/org.neard.conf
+if SE
+dist_dbus_DATA += se/org.neard.se.conf
+endif
+
if MAINTAINER_MODE
if SE

36
srcpkgs/neard/template Normal file
View file

@ -0,0 +1,36 @@
# Template file for 'neard'
pkgname=neard
version=0.18
revision=1
build_style=gnu-configure
# TODO: add '--enable-test' when updated from python2 & gtk+2
configure_args="--disable-systemd --enable-ese --enable-tools"
hostmakedepends="autoconf autoconf-archive automake libtool pkg-config"
makedepends="glib-devel libnl-devel"
depends="dbus"
short_desc="Near Field Communication (NFC) manager"
maintainer="Jami Kettunen <jami.kettunen@protonmail.com>"
license="GPL-2.0-only"
homepage="https://github.com/linux-nfc/neard"
distfiles="https://github.com/linux-nfc/neard/archive/refs/tags/v${version}.tar.gz"
checksum=c013e3115315e2e11d16b5f0f1c8ce9afbcdba26800aad91245fd9b4a5dc938b
pre_configure() {
autoreconf -fi
}
post_install() {
vsv neard
}
neard-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
# correct neard version.h install path
mv ${PKGDESTDIR}/usr/include/version.h \
${PKGDESTDIR}/usr/include/near
vmove usr/lib/pkgconfig
}
}