Browse Source

btrfs-progs-4.10.2-1.hyperbola2: adapt package to be FHS compliant

tags/milky-way/v0.3
André Silva 1 year ago
parent
commit
e04d6f2dcb
2 changed files with 9 additions and 7 deletions
  1. +8
    -6
      btrfs-progs/PKGBUILD
  2. +1
    -1
      btrfs-progs/btrfs-progs.install

+ 8
- 6
btrfs-progs/PKGBUILD View File

@@ -1,4 +1,3 @@
# $Id: PKGBUILD 292058 2017-04-03 19:56:48Z seblu $
# Maintainer (Arch): Sébastien "Seblu" Luttringer <seblu@archlinux.org>
# Contributor (Arch): Tom Gundersen <teg@jklm.no>
# Contributor (Arch): Tobias Powalowski <tpowa@archlinux.org>
@@ -6,7 +5,7 @@

pkgname=btrfs-progs
pkgver=4.10.2
pkgrel=1.hyperbola1
pkgrel=1.hyperbola2
pkgdesc='Btrfs filesystem utilities, without systemd support'
arch=('i686' 'x86_64')
depends=('glibc' 'libutil-linux' 'e2fsprogs' 'lzo' 'zlib')
@@ -15,7 +14,7 @@ url='https://btrfs.wiki.kernel.org'
replaces=('btrfs-progs-unstable')
conflicts=('btrfs-progs-unstable')
provides=('btrfs-progs-unstable')
license=('GPL2')
license=('GPL-2')
validpgpkeys=('F2B41200C54EFB30380C1756C565D5F9D76D583B')
source=("https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v$pkgver.tar."{xz,sign}
'initcpio-install-btrfs'
@@ -29,7 +28,7 @@ sha512sums=('1a21ca29d03c8d0e697ce075b841e38b021771a67da20087c80ab84bb87c5f56ea8

build() {
cd $pkgname-v$pkgver
./configure --prefix=/usr
./configure --prefix=/usr --bindir=/bin
make
}

@@ -42,13 +41,16 @@ package() {
cd $pkgname-v$pkgver
make DESTDIR="$pkgdir" install

# install license
install -Dm644 COPYING "$pkgdir/usr/share/licenses/btrfs/COPYING"

# 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"
install -Dm644 initcpio-install-btrfs "$pkgdir/lib/initcpio/install/btrfs"
install -Dm644 initcpio-hook-btrfs "$pkgdir/lib/initcpio/hooks/btrfs"
}

# vim:set ts=2 sw=2 ft=sh et:

+ 1
- 1
btrfs-progs/btrfs-progs.install View File

@@ -4,7 +4,7 @@
## arg 2: the old package version
post_upgrade() {
if (( "$(vercmp "$2" 0.19.20121005)" < 0 )); then
echo 'btrfs multi-device support now relies on linux 3.6 or later'
echo 'btrfs multi-device support now relies on linux kernel 3.6 or later'
fi
}


Loading…
Cancel
Save