contrib/libblockdev/Pkgfile

27 lines
739 B
Plaintext

# Description: A library for manipulating block devices
# URL: https://github.com/storaged-project/libblockdev
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gobject-introspection libbytesize libyaml ndctl nvme-cli parted volume_key
name=libblockdev
version=3.1.1
release=1
source=(https://github.com/storaged-project/$name/releases/download/$version-1/$name-$version.tar.gz)
build() {
cd $name-$version
find -type f \( -name "Makefile.am" -o -name "configure.ac" \) -print0 \
| xargs --null sed "s@ -Werror@@" -i
export CFLAGS="${CFLAGS} -Wno-deprecated-declarations"
aclocal
automake
./configure --prefix=/usr \
--with-dm=no
make
make DESTDIR=$PKG install
rm -fr $PKG/usr/share/gtk-doc
}