aboutsummaryrefslogtreecommitdiffstats
path: root/community/farbfeld/APKBUILD
blob: d9bf1a9b70cc28eb46041b65c4bddd85e65fc029 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=farbfeld
pkgver=4
pkgrel=0
pkgdesc="Lossless image format which is easy to parse, pipe and compress"
url="https://tools.suckless.org/farbfeld/"
arch="all"
license="ISC"
depends="file"
makedepends="libpng-dev libjpeg-turbo-dev"
install=""
options="!check"
subpackages="$pkgname-doc"
source="https://dl.suckless.org/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \
		-e '/^LDFLAGS  = -s$/d' \
		-e 's|/usr/local|/usr|g' \
		"$builddir"/config.mk
}

build() {
	make -C "$builddir"
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr install

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -m644 README FORMAT \
		"$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="5139dd81cf1e3cb7a32108c0acad0e4ae0de13e86b997f1a759aa1b1f7be6c1ad2a93a69af7126e3512a7c9b1669a2a301ff60171b098b3450f1da0594e3b6ac  farbfeld-4.tar.gz"