summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a3d768ed1c6438f827ba5178e3770f803e3e724 (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
32
33
34
35
36
37
38
39
40
# Maintainer: Jacki <jacki AT thejackimonster DOT de>

_pkgname='npainter'

pkgname="${_pkgname}-git"
pkgver='r528.250974f'
pkgrel=1
pkgdesc='fast and simple digital painting software'
arch=('x86_64')
url="https://mrgaturus.itch.io/npainter"
license=('GPL2')
conflicts=("${_pkgname}" "${_pkgname}-bin")
provides=("${_pkgname}")
depends=(gdk-pixbuf2 freetype2 libpng libglvnd libxcursor libxi zstd)
makedepends=(nim)
source=("git+https://github.com/mrgaturus/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
	cd "${_pkgname}"
	printf "'r%s.%s'" \
		"$(git rev-list --count HEAD)" \
		"$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${_pkgname}"
	./build_linux.sh
}

package() {
	cd "${srcdir}/${_pkgname}"

	install -Dm755 "${_pkgname}" "${pkgdir}/usr/share/${_pkgname}/${_pkgname}"
	cp -dpr --no-preserve=ownership "data" "${pkgdir}/usr/share/${_pkgname}/data"

	mkdir -p "${pkgdir}/usr/bin"
	ln -s "${pkgdir}/usr/share/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}