Add util-linux

This commit is contained in:
aheirman 2021-03-28 16:30:35 +02:00 committed by GitHub
parent 3e0992c3ce
commit 31d0732a36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

37
pkgs/util-linux/build.sh Normal file
View file

@ -0,0 +1,37 @@
pkgver=2.36.2
pkgname=util-linux
pkgrel=1
fetch() {
curl "https://mirrors.edge.kernel.org/pub/linux/utils/$pkgname/v2.36/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cd $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl \
--disable-all-programs \
--enable-libsmartcols \
--enable-libuuid \
--enable-libfdisk \
--enable-fdisks
make LDFLAGS="-lterminfo"
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat COPYING
}