41 lines
930 B
Bash
41 lines
930 B
Bash
#!/usr/bin/env bash
|
|
name='btrfs-progs'
|
|
release='2'
|
|
version='6.5.1'
|
|
url='https://github.com/storaged-project/libblockdev'
|
|
description='A library for manipulating block devices'
|
|
email='bayramk@gmail.com'
|
|
maintainer='bk'
|
|
license=('GPLv3')
|
|
source=("https://github.com/kdave/btrfs-progs/archive/refs/tags/v${version}.tar.gz")
|
|
depends=(e2fsprogs zlib libgcrypt eudev)
|
|
makedepends=()
|
|
md5sums=('97103f13d739ed909a83969836200a8e')
|
|
group=(sys.fs)
|
|
uses=()
|
|
arch=('x86_64')
|
|
|
|
install=btrfs-progs.install
|
|
options=(!staticlibs)
|
|
|
|
cd $name-$version
|
|
|
|
setup(){
|
|
./autogen.sh
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib64/ --with-crypto=libgcrypt \
|
|
--disable-zstd \
|
|
--disable-documentation
|
|
}
|
|
|
|
build(){
|
|
make $jobs
|
|
}
|
|
|
|
package(){
|
|
make DESTDIR="$DESTDIR" install install_python
|
|
# install bash completion (FS#44618)
|
|
install -Dm644 btrfs-completion "$DESTDIR/usr/share/bash-completion/completions/btrfs"
|
|
}
|
|
|