diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3ccffbcd38f3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Aditya Mishra <https://github.com/pegvin/goxel2/issues> +pkgname=goxel2-git +pkgver=continuous.r40.gf065ce8 +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=('GPL3') +depends=(glfw gtk3) +makedepends=(git make scons pkg-config 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 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" +} |