aboutsummaryrefslogtreecommitdiffstats
path: root/testing/partimage/APKBUILD
blob: aacd2d002c6e1a17677eb9fe9bcf392819a9cc67 (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
43
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=partimage
pkgver=0.6.9
pkgrel=0
pkgdesc="Saves partitions having a supported filesystem to an image file"
url="http://www.partimage.org"
arch="all"
license="GPL"
depends=
makedepends="bzip2-dev newt-dev zlib-dev gettext-dev slang-dev openssl-dev \
		newt-dev autoconf"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$pkgname/stable/$pkgver/$pkgname-$pkgver.tar.bz2
	partimage-0.6.9-zlib-1.2.6.patch
"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	patch -p1 -i $srcdir/$pkgname-0.6.9-zlib-1.2.6.patch || return 1
}

build() {
	cd "$_builddir"
	export LIBS="$LIBS -lintl"
	autoconf && automake
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-nls
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="1bc046fd915c5debbafc85729464e513  partimage-0.6.9.tar.bz2
6139caa49838f71e6b8ac11624252cf7  partimage-0.6.9-zlib-1.2.6.patch"