# Maintainer: Daniel Menelkir # Contributor: Evgeniy Alekseev # Contributor: Valeriy Lyasotskiy pkgname=g15daemon pkgver=1.9.5.7 pkgrel=1 pkgdesc="A daemon that makes it possible to use the G-Buttons and draw on the G15 LCD" arch=('x86_64') url="https://gitlab.com/menelkir/g15daemon" license=('GPL') depends=('libg15render>=1.3') source=(https://gitlab.com/menelkir/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.bz2) sha512sums=('7e62ce928d856e7804130ca26b5b93fa4c83cafe8b73e4072f3fccb2cc0f14c339b90c85bf6c62cf52a24b67d7b58fd577de33fa9b9680b6da8303acc8e20dac') build() { cd "${srcdir}/${pkgname}-${pkgver}" CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common ./configure --prefix=/usr --sbindir=/usr/bin --disable-static make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -D -m 644 "${srcdir}/${pkgname}-${pkgver}/contrib/init/g15daemon.service" \ "${pkgdir}/usr/lib/systemd/system/g15daemon.service" }