summaryrefslogtreecommitdiff
path: root/repo/parted/parted.xibuild
blob: bc490d82dd683af49c00cb661d327b01e0a939b6 (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
#!/bin/sh

NAME="parted"
DESC="Utility to create, destroy, resize, check and copy partitions"

MAKEDEPS="readline ncurses lvm2 bash util-linux"

PKG_VER=3.5
SOURCE="https://ftp.gnu.org/gnu/parted/parted-$PKG_VER.tar.xz"

ADDITIONAL="
fix-includes.patch
fix-libintl-header-s390x.patch
make-tests.patch
parted-include-sysmacros.patch
skip-duplicate-bsd-test-on-s390x.patch
"

prepare () {
    apply_patches
}

build() {
	./configure \
		--prefix=/usr \
		--enable-debug \
		--disable-nls \
		--disable-static \
		--enable-shared
	make
}

package() {
	make DESTDIR="$PKG_DEST" install
	rm -rf "$PKG_DEST"/usr/lib/charset.alias
	rmdir -p "$PKG_DEST"/usr/lib 2>/dev/null || true
}