contrib/libblockdev/Pkgfile

36 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

# Description: A library for manipulating block devices
# URL: https://github.com/storaged-project/libblockdev
# Maintainer: Tim Biermann, tbier at posteo dot de
2024-09-15 10:41:46 +02:00
# Depends on: gobject-introspection libbytesize libyaml ndctl volume_key
name=libblockdev
2024-09-15 10:41:46 +02:00
version=3.2.0
release=1
source=(https://github.com/storaged-project/$name/releases/download/$version/$name-$version.tar.gz
2024-09-15 10:41:46 +02:00
1059.patch)
build() {
cd $name-$version
2021-01-12 01:15:35 +01:00
2024-06-08 09:58:56 +02:00
find -type f \( -name "Makefile.am" -o -name "configure.ac" \) -print0 \
| xargs --null sed "s@ -Werror@@" -i
export CFLAGS="${CFLAGS} -Wno-deprecated-declarations"
2024-09-15 10:41:46 +02:00
patch -Np1 -i $SRC/1059.patch
aclocal
automake
2021-01-12 01:15:35 +01:00
2024-09-15 10:41:46 +02:00
prt-get isinst btrfs-progs || PKGMK_LIBBLOCKDEV+=' --without-btrfs'
prt-get isinst cryptsetup || PKGMK_LIBBLOCKDEV+=' --without-crypto'
prt-get isinst lvm2 || PKGMK_LIBBLOCKDEV+=' --without-dm'
prt-get isinst libatasmart || PKGMK_LIBBLOCKDEV+=' --without-smart'
prt-get isinst smartmontools || PKGMK_LIBBLOCKDEV+=' --without-smartmontools'
prt-get isinst nvme-cli || PKGMK_LIBBLOCKDEV+=' --without-nvme'
prt-get isinst parted || PKGMK_LIBBLOCKDEV+=' --without-part --without-tools'
./configure --prefix=/usr $PKGMK_LIBBLOCKDEV \
--with-python3 \
--without-gtk-doc
make
make DESTDIR=$PKG install
}