summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 050acf082ae3364379ede0f156bb42c44abf9d4c (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: Chris Down <chris@chrisdown.name>

pkgname=psi-notify
pkgver=1.2.1
pkgrel=2
pkgdesc='Minimalistic PSI notifier using libnotify'
url="https://github.com/cdown/psi-notify"
license=('MIT')
depends=('libnotify' 'systemd-libs')
arch=('x86_64' 'i686' 'arm')
source=("https://github.com/cdown/psi-notify/archive/$pkgver.tar.gz")
md5sums=('038442e24fece70843f1f7f9c0a59317')

build() {
    cd -- "${srcdir?}/$pkgname-$pkgver"
    make
}

package() {
    mkdir -p "$pkgdir"/usr/bin "$pkgdir"/usr/lib/systemd/user
    cp -a "${srcdir?}/$pkgname-$pkgver"/psi-notify "$pkgdir"/usr/bin
    cp -a "${srcdir?}/$pkgname-$pkgver"/psi-notify.service \
	"$pkgdir"/usr/lib/systemd/user

    install -Dm644 "${srcdir?}/$pkgname-$pkgver"/LICENSE \
	"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}