summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0abde73ca13d4d27fbc94c568676a19666042f74 (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
# Maintainer: Grafcube <grafcube at disroot dot org>

_pkgname=namedicon
pkgname=${_pkgname}-git
pkgver=1.1.0.r0.g8a405a5
pkgrel=1
pkgdesc='Get system icons from the name using the default icon theme. '
arch=('x86_64')
url="https://codeberg.org/grafcube/${_pkgname}"
license=('GPL')
depends=('gtk3')
makedepends=('git' 'zig')
provides=($_pkgname)
conflicts=($_pkgname)
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
	cd "${pkgname}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${pkgname}"
	zig build --release=safe
}

package() {
	cd "${pkgname}"
	install -Dm755 zig-out/bin/${_pkgname} "$pkgdir"/usr/bin/${_pkgname}
}