summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f5cc9239672b862ffe363bd5087e40eef26f447 (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
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Casper <draakie@proton.me>
_pkgname=river-bedload
pkgname=$_pkgname-git
pkgver=r9.9cdc0e0
pkgrel=1
pkgdesc="Display information about river in json in the STDOUT."
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://git.sr.ht/~novakane/river-bedload"
license=('GPL-3.0-only')

depends=(
  'glibc'
  'wayland'
)
makedepends=('git' 'zig')
source=(
    "${pkgname}::git+https://git.sr.ht/~novakane/river-bedload"
)
sha256sums=(
    'SKIP'
)
provides=("river-bedload")
conflicts=("river-bedload")
options=(!strip)

prepare() {
	cd "$pkgname"
    git submodule update --init
}

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

package() {
	cd "$pkgname"
	DESTDIR="$pkgdir" zig build install --prefix "/usr"
    install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$_pkgname"
    install -Dm644 README.md -t "$pkgdir/usr/share/doc/$_pkgname"
}