APKBUILD 1.93 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=parted
3
pkgver=3.2
4
pkgrel=10
Natanael Copa's avatar
Natanael Copa committed
5
pkgdesc="Utility to create, destroy, resize, check and copy partitions"
6
url="https://www.gnu.org/software/parted/parted.html"
7
arch="all"
8
license="GPL-3.0"
Natanael Copa's avatar
Natanael Copa committed
9
subpackages="$pkgname-dev $pkgname-doc"
10
checkdepends="perl eudev util-linux"
11
makedepends="readline-dev ncurses-dev lvm2-dev bash util-linux-dev"
12
source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz
13
	fix-includes.patch
14
	fix-libintl-header-s390x.patch
15
	parted-include-sysmacros.patch
16
	make-tests.patch
17
	skip-duplicate-bsd-test-on-s390x.patch
18
	"
19
builddir="$srcdir"/$pkgname-$pkgver
20
options="!checkroot"
21

22
build() {
23
	cd "$builddir"
24 25 26 27
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
28
		--enable-debug \
29
		--disable-nls \
30
		--disable-static \
31 32 33 34 35 36 37
		--enable-shared
	make
}

check() {
	cd "$builddir"
	make check
38 39 40
}

package() {
41 42
	cd "$builddir"
	make DESTDIR="$pkgdir" install
43
	rm -rf "$pkgdir"/usr/lib/charset.alias
44
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true
Natanael Copa's avatar
Natanael Copa committed
45
}
46
sha512sums="4e37dbdd6f5032c9ebfec43704f6882379597d038167b9c4d04053efa083c68a705196713864451fa9e11d32777e16c68982877945c5efd9ea5f8252cb20e1c4  parted-3.2.tar.xz
47
55ee63c218d1867c0f2c596e7c3eec5c42af160181456cc551fe3d432eabed0ac2dd3a3955ff0c375f76aeec8071e7f55a32834b87a0d39b8ef30361f671bfdd  fix-includes.patch
48
444a7e2fb3235dfd218f6b71fb25adde107d001f638d988ee1fa79686d8efee94a9499e27bdfdd75f9718760b448938b70a90a74285b93a39338d21f4ab4c9dc  fix-libintl-header-s390x.patch
49
ba86cd2591d8e920e474faf28a32f9eaca9482e168c53eae5d392276aefaf6c46b66a0d5fc4a18b7186bf38f7288bd79de8ba8019c1cd38a5e2102904ce75723  parted-include-sysmacros.patch
50 51
d0b08148f1b8020d8948780c281b2334d5d0acc5850d0a36bccab536bc91d91f5692021712d18d653699895e2c0b847b8bf9e6061d29c1e054f71fd440bc6f1e  make-tests.patch
d19ad61cffb6434f1433c2da29dc6c137076125ddd23936ca26298db5d120dc8ec64788556599a1a8522d10630bca48258d7dfa9fd633551b791275bdc2c68d0  skip-duplicate-bsd-test-on-s390x.patch"