summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: b318ac0595b3dfaeac1ae34714432472f93ff2dc (plain) (blame)
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
# 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"
}