summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 397fb4067a1daee4256001907b6b1c3d89c52aad (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
# Maintainer: ThatOneCalculator <kainoa@t1c.dev>

pkgname="systemd-yodad"
pkgver=2.1.0
pkgrel=1
pkgdesc="Plays the yoda death sound effect randomly"
arch=(any)
url="https://github.com/thatonecalculator/systemd-yodad"
license=('MIT')
depends=(
	systemd
	mpg123
)
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
options=(!makeflags !buildflags !strip)

package() {
	cd "${srcdir}/${pkgname}"
	install -Dm755 yoda -t "${pkgdir}/usr/bin"
	mkdir -p "${pkgdir}/usr/share/yoda"
  	install -Dm644 yodad.service "${pkgdir}/usr/lib/systemd/user/yodad.service"
  	install -Dm644 yoda.mp3 -t "${pkgdir}/usr/share/yoda/"
	install -Dm644 yoda_longer.mp3 -t "${pkgdir}/usr/share/yoda/"
}

post_install() {
  	echo "Pretty please systemctl --user enable --now yodad.service"
}

post_upgrade() {
  post_install
}