aboutsummaryrefslogtreecommitdiffstats
path: root/main/partimage/APKBUILD
blob: 83a01c341d7f02a0c5ba00d5dc0c52d1e61e5b13 (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
44
45
46
47
48
49
50
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=partimage
pkgver=0.6.9
pkgrel=1
pkgdesc="Saves partitions having a supported filesystem to an image file"
url="http://www.partimage.org"
arch="all"
license="GPL"
depends=
makedepends="linux-headers bzip2-dev newt-dev zlib-dev gettext-dev slang-dev openssl-dev
	newt-dev"
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
	partimage-0.6.9-common.patch
"

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

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

build() {
	cd "$builddir"
	export LIBS="$LIBS -lintl"
	./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
82e01a132c3d4ca656f3c7e96bf86c72  partimage-0.6.9-common.patch"
sha256sums="753a6c81f4be18033faed365320dc540fe5e58183eaadcd7a5b69b096fec6635  partimage-0.6.9.tar.bz2
67bb600b135ab4e9febf2b17ca4666d8bb0a334abc4e548d555a167a32b9615d  partimage-0.6.9-zlib-1.2.6.patch
5beebb0fa26168eecccbd9baf609d5ed207cdf5f420d75218e700be95c9d6760  partimage-0.6.9-common.patch"
sha512sums="252885921b23933fdcdf0bb6efa4b82066b08ca95cc653296912d384ae875b421c1d39f347a90115315139176d4eab4a930c24919c2d38cf00ed29c764cd14d9  partimage-0.6.9.tar.bz2
f6feaf6967620ca5512aec50ada13e1b3676976ee2e04cebb3cd64c991ec8be47b337cd99c2656b3a1c77ce4ea25661784a8217f6d8325fd346f1d15463392ce  partimage-0.6.9-zlib-1.2.6.patch
39faba3b75302c0fb04e343b3854549c06447e28040f9c49a83d595533901e3c6af252a18d8db0394cbaabc7c9c1bde014f2d423cab80dadb6ea5322dc19a381  partimage-0.6.9-common.patch"