# Maintainer: Natanael Copa pkgname=parted pkgver=3.3 pkgrel=0 pkgdesc="Utility to create, destroy, resize, check and copy partitions" url="https://www.gnu.org/software/parted/parted.html" arch="all" license="GPL-3.0-or-later" subpackages="$pkgname-dev $pkgname-doc" checkdepends="perl eudev util-linux" makedepends="readline-dev ncurses-dev lvm2-dev bash util-linux-dev" source="ftp://ftp.gnu.org/pub/gnu/parted/parted-$pkgver.tar.xz fix-includes.patch fix-libintl-header-s390x.patch parted-include-sysmacros.patch make-tests.patch skip-duplicate-bsd-test-on-s390x.patch " options="!checkroot" build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-debug \ --disable-nls \ --disable-static \ --enable-shared make } check() { make check } package() { make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/lib/charset.alias rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true } sha512sums="d1384694a491aa53bab6206fdeccd1d192de2ed379fe25aa865dd6aa06ed945a728e85b2ccc2fb23f5aa9dfee4a8bd8f0f2be1dd386cb8e8861b73382c6a07e4 parted-3.3.tar.xz 55ee63c218d1867c0f2c596e7c3eec5c42af160181456cc551fe3d432eabed0ac2dd3a3955ff0c375f76aeec8071e7f55a32834b87a0d39b8ef30361f671bfdd fix-includes.patch 444a7e2fb3235dfd218f6b71fb25adde107d001f638d988ee1fa79686d8efee94a9499e27bdfdd75f9718760b448938b70a90a74285b93a39338d21f4ab4c9dc fix-libintl-header-s390x.patch ba86cd2591d8e920e474faf28a32f9eaca9482e168c53eae5d392276aefaf6c46b66a0d5fc4a18b7186bf38f7288bd79de8ba8019c1cd38a5e2102904ce75723 parted-include-sysmacros.patch a8995b87f1bb1c9c357fc4729a17b629291f918df2b65548789d41537af5c3972238b2ad65d845738bd76f8b63673d075227c0de0bbf7f7f061cc36adec0c19d make-tests.patch d19ad61cffb6434f1433c2da29dc6c137076125ddd23936ca26298db5d120dc8ec64788556599a1a8522d10630bca48258d7dfa9fd633551b791275bdc2c68d0 skip-duplicate-bsd-test-on-s390x.patch"