diff options
author | Gabriel Bjørnager Jensen | 2023-10-05 19:16:53 +0200 |
---|---|---|
committer | Gabriel Bjørnager Jensen | 2023-10-05 19:16:53 +0200 |
commit | a6fe19e319d52e8e2c1b8d6b77aa3717f3556b77 (patch) | |
tree | 2ce6a80d2f3f834854c41ce8f80b7f349c2903d1 |
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..b318ac0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Gabriel Bjørnager Jensen +pkgname=benoit +pkgver=2.1.1 +pkgrel=1 +pkgdesc="Multithreaded Mandelbrot renderer with support for PNG and WebP encoding." +arch=("any") +url="https://mandelbrot.dk/benoit" +makedepends=("cargo" "desktop-file-utils" "git" "rust") +source=("git+https://mandelbrot.dk/benoit") +license=("AGPL3") +sha512sums=("SKIP") +pkgver() { + cd "${srcdir}/benoit" + printf "%s" "$(git describe --abbrev=0)" +} +build() { + cd "${srcdir}/benoit" + cargo build --release +} +package() { + cd "${srcdir}/benoit" + mkdir -pm755 "${pkgdir}/usr/bin" + mkdir -pm755 "${pkgdir}/usr/share/application" + mkdir -pm755 "${pkgdir}/usr/share/icons" + install -m755 "target/release/benoit" "${pkgdir}/usr/bin/benoit" + install -m644 "benoit.svg" "${pkgdir}/usr/share/icons/benoit.svg" + desktop-file-install --dir="${pkgdir}/usr/share/applications" "benoit.desktop" +} |