2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
|
|
# Website : https://pozol.eu
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=btrfs-progs
|
2023-10-22 01:25:26 +02:00
|
|
|
pkgver=6.5.3
|
|
|
|
pkgrel=01
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='Btrfs filesystem utilities w/o systemd'
|
2023-10-06 12:20:18 +02:00
|
|
|
makedepends=('asciidoc' 'xmlto' 'python' 'python-setuptools' 'e2fsprogs' 'reiserfsprogs' 'python-sphinx')
|
2022-03-20 13:19:37 +01:00
|
|
|
depends=('glibc' 'util-linux-libs' 'lzo' 'zlib' 'zstd' 'libgcrypt')
|
|
|
|
optdepends=('python: libbtrfsutil python bindings'
|
|
|
|
'e2fsprogs: btrfs-convert'
|
|
|
|
'reiserfsprogs: btrfs-convert')
|
2023-10-04 13:50:47 +02:00
|
|
|
#url='https://btrfs.wiki.kernel.org'
|
|
|
|
url='https://btrfs.readthedocs.io'
|
2022-03-20 13:19:37 +01:00
|
|
|
replaces=('btrfs-progs-unstable')
|
|
|
|
conflicts=('btrfs-progs-unstable')
|
|
|
|
provides=('btrfs-progs-unstable')
|
2022-11-30 01:23:55 +01:00
|
|
|
#options=(!staticlibs debug) ## uncomment this to have the debug pkg produced
|
|
|
|
options=(!staticlibs)
|
2022-04-29 21:55:53 +02:00
|
|
|
source=("https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v$pkgver.tar."{xz,sign}
|
2023-09-14 12:25:03 +02:00
|
|
|
# "https://github.com/kdave/btrfs-progs/commit/839b2d587da9d691c2f2e7cdb5301eed23781d1d.patch"
|
|
|
|
# "https://github.com/kdave/btrfs-progs/commit/03f41ac508d2c47fdfef08f0fd27ab154f7dcfd8.patch"
|
2022-03-20 13:19:37 +01:00
|
|
|
'initcpio-install-btrfs'
|
2023-01-05 21:28:22 +01:00
|
|
|
'initcpio-hook-btrfs')
|
2022-03-20 13:19:37 +01:00
|
|
|
install=btrfs-progs.install
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-v$pkgver
|
|
|
|
# apply patch from the source array (should be a pacman feature)
|
|
|
|
local src
|
|
|
|
for src in "${source[@]}"; do
|
|
|
|
src="${src%%::*}"
|
|
|
|
src="${src##*/}"
|
|
|
|
[[ $src = *.patch ]] || continue
|
|
|
|
echo "Applying patch $src..."
|
|
|
|
patch -Np1 < "../$src"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-v$pkgver
|
|
|
|
./configure --prefix=/usr --with-crypto=libgcrypt
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd $pkgname-v$pkgver
|
|
|
|
./btrfs filesystem show
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-v$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install install_python
|
|
|
|
|
|
|
|
# install bash completion (FS#44618)
|
|
|
|
install -Dm644 btrfs-completion "$pkgdir/usr/share/bash-completion/completions/btrfs"
|
|
|
|
|
|
|
|
# install mkinitcpio hooks
|
|
|
|
cd "$srcdir"
|
|
|
|
install -Dm644 initcpio-install-btrfs "$pkgdir/usr/lib/initcpio/install/btrfs"
|
|
|
|
install -Dm644 initcpio-hook-btrfs "$pkgdir/usr/lib/initcpio/hooks/btrfs"
|
|
|
|
}
|
|
|
|
|
2023-03-04 02:17:21 +01:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2023-10-06 12:20:18 +02:00
|
|
|
license=('GPL-2.0-only')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2023-06-21 19:46:04 +02:00
|
|
|
validpgpkeys=('F2B41200C54EFB30380C1756C565D5F9D76D583B')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2023-10-22 01:25:26 +02:00
|
|
|
sha256sums=(fce7cb3f920e615e63faf265a4cd9f2bf39d4adcaa66211c987697da85a2eedd # btrfs-progs-v6.5.3.tar.xz
|
|
|
|
d4604f0d8e9cbc67afe36dddec948e8c52ba87915da477b40c18fc6ccbd177e8 # btrfs-progs-v6.5.3.tar.sign
|
2022-10-16 02:12:56 +02:00
|
|
|
bbe60b35d1b1e2efc1308a8f54f1fdc6808240a81c5f5b4d75321b7ee86e41f4 # initcpio-install-btrfs
|
2023-01-05 21:28:22 +01:00
|
|
|
35efeee8590d6d60c711ae9cdc918e4841ab61d10cb02359e65e36ebff95ffc5) # initcpio-hook-btrfs
|
2023-01-01 01:49:26 +01:00
|
|
|
|
2023-10-22 01:25:26 +02:00
|
|
|
## fd044c26aa3c967e87e5410513659574fc15b854fed1d588d7e8d03f0d570ce4 btrfs-progs-6.5.3-01-x86_64.pkg.tar.lz
|