summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c5d52940ea5d96a2153988c2171b95561c35a10 (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
# Maintainer: Aditya Mishra <adityamishra081@protonmail.com>

pkgname=dotto
pkgver=6dea00
pkgrel=5
pkgdesc="a pixel art editor (Very Unstable, Under Heavy Development)"
arch=('any')
url="https://github.com/LibreSprite/Dotto"
license=('MIT')
depends=(sdl2 sdl2_image)
makedepends=(git make pkg-config lcms2)
optdepends=()
provides=('dotto')
conflicts=('dotto' 'dotto-git')
source=(git+https://github.com/LibreSprite/Dotto.git)
sha512sums=(SKIP)

pkgver() {
	cd Dotto
	git describe --always --dirty --abbrev=6 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd Dotto
	git submodule update --init --recursive
	make -j4
}

package() {
	cd Dotto
	mkdir -p "$pkgdir/opt/Dotto/"
	find data/ -type f -exec install -Dm 755 "{}" "$pkgdir/opt/Dotto/{}" \;
	install -Dm644 data/Dotto.desktop "$pkgdir/usr/share/applications/Dotto.desktop"
	install -Dm644 data/icon.png "$pkgdir/usr/share/icons/dotto.png"
	install -Dm755 dotto "$pkgdir/opt/Dotto/dotto"
}