2020-06-14 23:35:24 +02:00
|
|
|
# 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
|
2020-06-14 23:35:24 +02:00
|
|
|
|
|
|
|
name=libblockdev
|
2024-09-15 10:41:46 +02:00
|
|
|
version=3.2.0
|
2020-06-14 23:35:24 +02:00
|
|
|
release=1
|
2024-09-15 16:51:30 +02:00
|
|
|
source=(https://github.com/storaged-project/$name/releases/download/$version/$name-$version.tar.gz
|
2024-09-15 10:41:46 +02:00
|
|
|
1059.patch)
|
2020-06-14 23:35:24 +02:00
|
|
|
|
|
|
|
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
|
2021-04-11 04:25:06 +02:00
|
|
|
export CFLAGS="${CFLAGS} -Wno-deprecated-declarations"
|
2024-09-15 10:41:46 +02:00
|
|
|
patch -Np1 -i $SRC/1059.patch
|
2020-06-14 23:35:24 +02:00
|
|
|
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
|
2020-06-14 23:35:24 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
}
|