commit 40e214d5600023f71ed67fe9f48f51e9b4807d5b Author: Edgar Vincent Date: Sat Aug 13 21:41:31 2022 +0200 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..e67d43f0a3d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = waked-git + pkgdesc = Daemon to let other applications wake up the system + pkgver = v0.1.1.r0.g05729fb + pkgrel = 1 + url = https://gitlab.com/seath1/waked + arch = aarch64 + arch = x86_64 + license = GPL2 + makedepends = git + makedepends = cmake + depends = sdbus-cpp + provides = waked + source = git+https://gitlab.com/seath1/waked.git + sha256sums = SKIP + +pkgname = waked-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..7ac442e12c2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Edgar Vincent +_pkgname=waked +pkgname=${_pkgname}-git +pkgver=v0.1.1.r0.g05729fb +pkgrel=1 +pkgdesc="Daemon to let other applications wake up the system" +url="https://gitlab.com/seath1/waked" +license=('GPL2') +arch=('aarch64' 'x86_64') +depends=(sdbus-cpp) +makedepends=(git cmake) +provides=('waked') +source=("git+https://gitlab.com/seath1/waked.git") +sha256sums=('SKIP') + +pkgver() { + cd "$_pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$_pkgname" + cmake src + make +} + +package() { + cd "$_pkgname" + install -Dm755 waked "${pkgdir}"/usr/bin/waked + install -Dm644 waked.service "${pkgdir}"/usr/lib/systemd/system/waked.service + install -Dm644 de.seath.Waked.conf "${pkgdir}"/usr/share/dbus-1/system.d/de.seath.Waked.conf +}