summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48d3cdabf833689f9e3497df903570c643dae5e1 (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=v1.0.0.r0.g1964aff
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 -Drelease-safe
}

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