void-packages/srcpkgs/neard/template

39 lines
1.1 KiB
Bash

# Template file for 'neard'
pkgname=neard
version=0.19
revision=2
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 libnl3-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"
changelog="https://raw.githubusercontent.com/linux-nfc/neard/master/ChangeLog"
distfiles="https://github.com/linux-nfc/neard/archive/refs/tags/v${version}.tar.gz"
checksum=129bbf69488fdb599d480356765941f111d7799495d0d64095b25e893c4d2be7
pre_configure() {
autoreconf -fi
}
post_install() {
vsv neard
vsv seeld
}
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/version.h
vmove usr/lib/pkgconfig
}
}