mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-02 20:21:43 +01:00
main/util-linux: support cross building
This commit is contained in:
parent
b3de9c7809
commit
ce76efcd7e
@ -16,7 +16,9 @@ arch="all"
|
||||
license="GPL2 GPL2+ LGPL2+ BSD Public Domain"
|
||||
depends="findmnt"
|
||||
# use GNU sed til bb sed is fixed. Also GNU tar is needed
|
||||
makedepends="zlib-dev sed ncurses-dev tar autoconf automake libtool python-dev linux-headers"
|
||||
makedepends_build="sed tar autoconf automake libtool"
|
||||
makedepends_host="zlib-dev ncurses-dev linux-headers"
|
||||
makedepends="$makedepends_build $makedepends_host"
|
||||
install=
|
||||
options="suid"
|
||||
source="http://www.kernel.org/pub/linux/utils/$pkgname/v${_v}/$pkgname-$pkgver.tar.xz
|
||||
@ -25,7 +27,11 @@ source="http://www.kernel.org/pub/linux/utils/$pkgname/v${_v}/$pkgname-$pkgver.t
|
||||
"
|
||||
subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion:bashcomp
|
||||
libuuid libblkid libmount libsmartcols libfdisk sfdisk cfdisk
|
||||
findmnt:_findmnt mcookie blkid py-libmount:_py"
|
||||
findmnt:_findmnt mcookie blkid"
|
||||
if [ -z "$BOOTSTRAP" ]; then
|
||||
makedepends_host="$makedepends_host ncurses-dev python-dev"
|
||||
subpackages="$subpackages py-libmount:_py"
|
||||
fi
|
||||
replaces="e2fsprogs util-linux-ng"
|
||||
|
||||
_builddir="$srcdir/$pkgname-$pkgver"
|
||||
@ -51,16 +57,15 @@ build() {
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--enable-raw \
|
||||
--with-ncurses \
|
||||
--disable-uuidd \
|
||||
--disable-nls \
|
||||
--disable-tls \
|
||||
--disable-kill \
|
||||
--with-ncurses \
|
||||
--disable-login \
|
||||
--disable-last \
|
||||
--disable-sulogin \
|
||||
--disable-su \
|
||||
--enable-chsh \
|
||||
|| return 1
|
||||
make || return 1
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user