diff options
Diffstat (limited to 'extra/avfs')
-rw-r--r-- | extra/avfs/PKGBUILD | 29 | ||||
-rw-r--r-- | extra/avfs/avfs-1.0.0-fix_open_missing_mode.patch | 11 |
2 files changed, 32 insertions, 8 deletions
diff --git a/extra/avfs/PKGBUILD b/extra/avfs/PKGBUILD index a647b1185..0fcc24408 100644 --- a/extra/avfs/PKGBUILD +++ b/extra/avfs/PKGBUILD @@ -1,22 +1,35 @@ -# $Id: PKGBUILD 104091 2010-12-28 18:22:31Z kevin $ +# $Id: PKGBUILD 151581 2012-02-27 18:31:46Z giovanni $ # Maintainer: Kevin Piche <kevin@archlinux.org> # Contributor: K. Piche <kpiche@rogers.com> pkgname=avfs -pkgver=0.9.9 +pkgver=1.0.0 pkgrel=1 -pkgdesc="A virtual filesystem which enables programs to look inside archived or compressed files, or access remote files" -arch=(i686 x86_64) +pkgdesc="A virtual filesystem that allows browsing of compressed files" +arch=('i686' 'x86_64') license=('GPL') url="http://avf.sourceforge.net/" -source=(http://downloads.sourceforge.net/sourceforge/avf/${pkgname}-${pkgver}.tar.bz2) +source=("http://downloads.sourceforge.net/sourceforge/avf/${pkgname}-${pkgver}.tar.bz2" + 'avfs-1.0.0-fix_open_missing_mode.patch') options=(!emptydirs !libtool) -depends=('fuse' 'sh') -md5sums=('3e0df074188a6c4ed9df082f61cc6bf4') +depends=('fuse' 'xz' 'perl') +md5sums=('c58421e4f294125895f2c6653a7366a7' + 'bdd84b179a869bc6d64529a64a640fc6') build() { cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr --enable-library --enable-fuse --disable-static + + patch -Np1 -i "${srcdir}/avfs-1.0.0-fix_open_missing_mode.patch" + + ./configure --prefix=/usr \ + --enable-library \ + --enable-fuse \ + --disable-static make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install } diff --git a/extra/avfs/avfs-1.0.0-fix_open_missing_mode.patch b/extra/avfs/avfs-1.0.0-fix_open_missing_mode.patch new file mode 100644 index 000000000..1e4a0a4d8 --- /dev/null +++ b/extra/avfs/avfs-1.0.0-fix_open_missing_mode.patch @@ -0,0 +1,11 @@ +--- a/modules/urar.c 2007-05-14 20:21:23.000000000 +0200 ++++ b/modules/urar.c 2009-02-09 13:48:56.780225932 +0100 +@@ -587,7 +587,7 @@ + if(res < 0) + return res; + +- fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC); ++ fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC, 0644); + if(fd == -1) { + res = -errno; + av_log(AVLOG_ERROR, "RAR: Could not open %s: %s", tmpfile, |