blob: f37efd5db043921013499ddb94a1e22532e60e26 (
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
40
41
42
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=farbfeld
pkgver=3
pkgrel=0
pkgdesc="Lossless image format which is easy to parse, pipe and compress"
url="http://tools.suckless.org/farbfeld/"
arch="all"
license="ISC"
depends=""
makedepends="libpng-dev libjpeg-turbo-dev"
install=""
options="!check"
subpackages="$pkgname-doc"
source="http://dl.suckless.org/$pkgname/$pkgname-$pkgver.tar.gz
gcc6-fixes.patch"
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 \
MANPREFIX=/usr/share/man install
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
install -m644 README FORMAT \
"$pkgdir"/usr/share/doc/$pkgname/
}
sha512sums="4f1e44282810bd2724f78857bcde401b82945375c5472b31e39250d660efffd425e0a2da5aecf0133ad3d414c31214d073d00f519bc83960b5bbfd53df3b1c49 farbfeld-3.tar.gz
884bf16aa5e88de6d538f8acd5011326dddee4e5a35ca95b70691d012b9238e88325c2cf69acae072960347146972161a40e0c540d0ec7dd4e536426143c8c83 gcc6-fixes.patch"
|