summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6934fa44e1e5c11e1cd2d9576c208bdca6c5781f (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
# Maintainer: Aditya Mishra <https://github.com/pegvin/csprite/issues>
pkgname=csprite-git
pkgver=0.1.0.r148.g57d60d0
pkgrel=1 # Update if you changed something but that is so minor change you don't want to change the version
pkgdesc="a tiny pixel art editor"
arch=('i686' 'x86_64')
url="https://github.com/pegvin/csprite"
license=('MIT')
depends=(sdl2)
makedepends=(git make scons pkg-config python python-pillow python-numpy)
optdepends=()
provides=('csprite-git')
conflicts=('csprite' 'csprite-git' 'csprite-bin')
source=(git+https://github.com/pegvin/csprite.git)
sha512sums=(SKIP)

pkgver() {
	cd csprite
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd csprite
	make generate
	make release
}

package() {
    cd csprite
	install -Dm644 data/csprite.desktop "$pkgdir/usr/share/applications/csprite.desktop"
	install -Dm644 data/icon-512.png "$pkgdir/usr/share/icons/csprite.png"
	install -Dm755 csprite "$pkgdir/usr/bin/csprite"
}