summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2819ea99c88e5059f95a792dda0787ee43b8742 (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
# Maintainer: Corey Hinshaw <corey(at)electrickite(dot)org>

pkgname=caffeinated
pkgver=0.2.1
pkgrel=2
pkgdesc="Simple logind and Wayland idle inhibitor"
arch=("any")
url="https://github.com/electrickite/${pkgname}"
license=("MIT")
depends=("libbsd" "systemd" "wayland" "wayland-protocols")
source=(
  "https://github.com/electrickite/${pkgname}/archive/${pkgver}.tar.gz"
  "${pkgname}.service")
sha256sums=(
  "e6f71cf32a3bc1e88e5826593c89065835e6bc9f67ff08ff190b764428037088"
  "29b1952dbd1c1b52e82535c1845f843dc427bad4b0831acd9f46c375d4731151")

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make PREFIX=/usr WAYLAND=1 clean all
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make PREFIX=/usr DESTDIR="${pkgdir}" WAYLAND=1 install
  install -m644 -D ${srcdir}/${pkgname}.service ${pkgdir}/usr/lib/systemd/user/${pkgname}.service
}