diff options
author | Grafcube | 2022-11-01 20:35:16 +0530 |
---|---|---|
committer | Grafcube | 2022-11-01 20:35:16 +0530 |
commit | ef99f893e2be6bbb26390e45dc0a2385b8296f43 (patch) | |
tree | 57704badda394df268db602afe64df4263b9279f | |
download | aur-ef99f893e2be6bbb26390e45dc0a2385b8296f43.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..14df29428aa1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = namedicon-git + pkgdesc = Get system icons from the name using the default icon theme. + pkgver = v1.0.0.r0.g1964aff + pkgrel = 1 + url = https://codeberg.org/grafcube/namedicon + arch = x86_64 + license = GPL + makedepends = git + makedepends = zig + depends = gtk3 + provides = namedicon + conflicts = namedicon + source = namedicon-git::git+https://codeberg.org/grafcube/namedicon.git + sha256sums = SKIP + +pkgname = namedicon-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..2bb3032b76a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +* + +!.gitignore +!.SRCINFO +!PKGBUILD +!*.patch diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..48d3cdabf833 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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} +} |