summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a150e3d970062d48d63b7aa56b08fd3a431843a (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
39
40
41
42
43
44
45
46
# Maintainer: Øystein Tveit <h7x4abk3g@protonmail.com>
pkgname='boomer-git'
pkgver=r286.cc0f531
pkgrel=1
pkgdesc="Zoomer application for Linux."
arch=('x86_64')
url="https://github.com/tsoding/boomer"
license=('MIT')

depends=(
	'mesa'
	'libx11'
	'libxext'
	'libxrandr'
)
makedepends=('git' 'nimble')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")

source=("boomer::git+https://github.com/tsoding/boomer.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
	nimble -y install
}

build() {
	cd "$srcdir/${pkgname%-git}"
	nimble -y build
}

package() {
	cd "$srcdir/${pkgname%-git}"

	install -Dm755 ./boomer "$pkgdir/usr/bin/boomer"
  install -Dm644 ./demo.gif "$pkgdir/usr/share/doc/$pkgname"
  install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname"
  install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}