summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ac442e12c2fa4750046ef750b4d1606d1c13f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Edgar Vincent <e-v@posteo.net>
_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
}