summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 079a4215284a5d502d3961394e9de8f607aa9116 (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: Jakub Kądziołka <kuba@kadziolka.net>

pkgname=dazzlie-git
pkgver=31.facd1c9
pkgrel=1
pkgdesc="a command-line program that lets you convert between various retro tile graphics formats and PNG"
arch=(x86_64)
url="https://github.com/obskyr/dazzlie"
license=(MIT)
depends=(gc pcre libevent)
makedepends=(crystal shards git)
source=(git+ssh://git@github.com/obskyr/dazzlie.git)
sha1sums=(SKIP)

pkgver(){
	cd dazzlie
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare(){
	sed -i 's/crystal deps/shards/;s/crystal build/\0 --link-flags -Wl,-z,relro,-z,now,--as-needed/' dazzlie/Makefile
}

build(){
	cd dazzlie
	make
}

package(){
	cd dazzlie
	install -Dm755 bin/dazzlie "$pkgdir/usr/bin/dazzlie"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/dazzlie-git/LICENSE"
}