aboutsummaryrefslogtreecommitdiffstats
path: root/main/gpicview/APKBUILD
blob: 3f4194d992318e4d40405cab8f1d367b9e1f016c (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gpicview
pkgver=0.2.2
pkgrel=1
pkgdesc="Picture viewer of the LXDE Desktop"
url="http://wiki.lxde.org/en/GPicView"
arch="all"
license="GPL-2"
depends=
subpackages="$pkgname-lang"
makedepends="gtk+-dev intltool jpeg-dev autoconf automake libtool"
source="http://downloads.sourceforge.net/sourceforge/lxde/$pkgname-$pkgver.tar.gz
	libm-underlinking.patch"

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	libtoolize --force && aclocal && autoconf && automake
}

build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --sysconfdir=/etc --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install || return 1
}
md5sums="943da9f4a23541accd5acdd4fb69966f  gpicview-0.2.2.tar.gz
99fb803a293c88a37b606136f6a5c6ca  libm-underlinking.patch"