summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3868de8015c4a8be324acf36ab6468ac0ae721f6 (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
33
34
35
36
37
38
# Maintainer: Taufik Hidayat <tfkhdyt@proton.me>
pkgname=prayermate-id
pkgver=1.1.0
pkgrel=1
epoch=
pkgdesc="Command line based Muslim prayer reminder - Indonesia"
arch=("x86_64")
url="https://github.com/tfkhdyt/prayermate"
license=('ISC')
depends=()
makedepends=('go')
checkdepends=()
optdepends=()
provides=("prayermate")
conflicts=()
replaces=()
source=("$pkgname-$pkgver.tar.gz::https://github.com/tfkhdyt/prayermate/archive/refs/tags/v$pkgver.tar.gz")
md5sums=("SKIP")

build() {
	cd "prayermate-$pkgver"
	go build -ldflags="-w -s" -o prayermate .
	./prayermate completion bash >prayermate.bash
	./prayermate completion zsh >_prayermate.zsh
	./prayermate completion fish >prayermate.fish
}

package() {
	cd "prayermate-$pkgver"
	install -Dm755 prayermate "$pkgdir/usr/bin/prayermate"
	install -Dm644 prayermate.bash "$pkgdir/usr/share/bash-completion/completions/prayermate"
	install -Dm644 _prayermate.zsh "$pkgdir/usr/share/zsh/site-functions/_prayermate"
	install -Dm644 prayermate.fish "$pkgdir/usr/share/fish/vendor_completions.d/prayermate.fish"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/prayermate-id/LICENSE"
	install -Dm644 prayermate-notify.service "$pkgdir/usr/lib/systemd/user/prayermate-notify.service"
	mkdir -p "$pkgdir/usr/share/prayermate"
	cp -R assets "$pkgdir/usr/share/prayermate"
}