From 1f45ad8e3f17397e2f44e68ef9a0d860091eea9e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 27 May 2012 00:05:57 +0000 Subject: Sun May 27 00:05:56 UTC 2012 --- testing/btrfs-progs/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 testing/btrfs-progs/PKGBUILD (limited to 'testing/btrfs-progs/PKGBUILD') diff --git a/testing/btrfs-progs/PKGBUILD b/testing/btrfs-progs/PKGBUILD new file mode 100644 index 000000000..9a0ccd998 --- /dev/null +++ b/testing/btrfs-progs/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 159628 2012-05-26 00:01:32Z dreisner $ +# Maintainer: Tom Gundersen +# Contributor: Tobias Powalowski +pkgname=btrfs-progs +pkgver=0.19.20120328 +pkgrel=3 +pkgdesc="btrfs filesystem utilities" +arch=(i686 x86_64) +depends=('glibc' 'e2fsprogs') +url="http://btrfs.wiki.kernel.org/" +replaces=('btrfs-progs-unstable') +conflicts=('btrfs-progs-unstable') +provides=('btrfs-progs-unstable') +license=('GPL2') +source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.xz + initcpio-install-btrfs + initcpio-hook-btrfs) +md5sums=('f4504e73cf9254779b78d5b2318ac570' + '3eae9bf1541e297fa72aa40ebf7320c6' + 'b09688a915a0ec8f40e2f5aacbabc9ad') + +build() { + cd $srcdir/$pkgname-$pkgver + make CFLAGS="$CFLAGS" +} + +package() { + cd $srcdir/$pkgname-$pkgver + make prefix=$pkgdir/usr install + # fix manpage + mkdir -p $pkgdir/usr/share/ + mv $pkgdir/usr/man $pkgdir/usr/share/man + mkdir -p ${pkgdir}/sbin + ln -sf /usr/bin/btrfs ${pkgdir}/sbin/btrfs + + # install mkinitcpio hooks + install -Dm644 "$srcdir/initcpio-install-btrfs" \ + "$pkgdir/usr/lib/initcpio/install/btrfs" + install -Dm644 "$srcdir/initcpio-hook-btrfs" \ + "$pkgdir/usr/lib/initcpio/hooks/btrfs" +} -- cgit v1.2.3-54-g00ecf