diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-09-08 13:45:16 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-09-08 13:45:16 -0300 |
commit | ae0fc98f878108a4b7d349bc16403906db42b212 (patch) | |
tree | ff6e2ce391aacca8ba52ea268213b1e498ffa7b7 | |
parent | 00592929fa729aadb084d4e59c3658ea76e31ea2 (diff) | |
download | abslibre-ae0fc98f878108a4b7d349bc16403906db42b212.tar.gz abslibre-ae0fc98f878108a4b7d349bc16403906db42b212.tar.bz2 abslibre-ae0fc98f878108a4b7d349bc16403906db42b212.zip |
libre/p7zip-libre-9.20.1-1
Missed the PKGBUILD :|
-rw-r--r-- | libre/p7zip-libre/PKGBUILD | 85 |
1 files changed, 60 insertions, 25 deletions
diff --git a/libre/p7zip-libre/PKGBUILD b/libre/p7zip-libre/PKGBUILD index cbee2b234..61d0d5d71 100644 --- a/libre/p7zip-libre/PKGBUILD +++ b/libre/p7zip-libre/PKGBUILD @@ -7,45 +7,80 @@ pkgname=p7zip-libre _pkgname=${pkgname%-libre} -pkgver=9.20 -pkgrel=1 +pkgver=9.20.1 +pkgrel=4 pkgdesc='Command-line version of the 7zip compressed file archiver without Rar' -arch=('i686' 'x86_64') -license=('GPL') url='http://p7zip.sourceforge.net/' -makedepends=('yasm' 'nasm') -source=("http://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}_${pkgver}_src_all.tar.bz2" - 9.04-makefile.patch) -provides=("p7zip=$pkgver") -conflicts=('p7zip') -replaces=('p7zip') -sha1sums=('c976df4543ea946a65bc3f5e3d4e9baa417e5f12' - '3a3333d4703955664fdd4023c624ab4828af0ab1') -build() { - cd "${srcdir}/${_pkgname}_${pkgver}" +license=('GPL') +arch=('i686' 'x86_64') +provides=("p7zip=$pkgver" 'unzip') +conflicts=('p7zip' 'unzip') +replaces=('p7zip' 'unzip') +optdepends=('wxgtk: GUI' + 'desktop-file-utils: desktop entries') +makedepends=('yasm' 'nasm' 'wxgtk') +source=("http://repo.parabolagnulinux.org/other/${pkgname}_${pkgver}.tar.bz2" + 'p7zip-libre.patch' + 'unzip' # unzip replacement + '7zFM.desktop') +md5sums=('c1eaf537e382b93adaa64713c96089fb' + '5b938c94cf80179137ea560dde510951' + '371af657bfb81a97bbeb5439896c814a' + '5b1c13139c42024d73abb67708ab6864') +install=install + +mksource() { + if [ ! -d "${_pkgname}_${pkgver}" ]; then + wget -O - "http://downloads.sourceforge.net/project/${_pkgname}/${_pkgname}/${pkgver}/${_pkgname}_${pkgver}_src_all.tar.bz2" | \ + tar xjf - + fi + + pushd "${_pkgname}_${pkgver}" msg "Removing unRar" - sed -e '/Rar/d' -i makefile* - rm -rf CPP/7zip/Compress/Rar - patch -p1 -i $startdir/src/9.04-makefile.patch +# Generate patch +# sed -e '/Rar/d' -i makefile* +# find -name '*Rar*' -print0 | xargs -0 rm -rvf +# Remove Rar mentions in CPP/7zip/Bundles/Format7zFree/makefile + patch -Np1 -i ../p7zip-libre.patch + + popd + + tar czvf "${pkgname}_${pkgver}.tar.bz2" "${_pkgname}_${pkgver}" +} + +build() { + cd "${srcdir}/${_pkgname}_${pkgver}" [[ $CARCH = x86_64 ]] \ && cp makefile.linux_amd64_asm makefile.machine \ || cp makefile.linux_x86_asm_gcc_4.X makefile.machine - sed -i "s|usr/local|usr|g" makefile - make all3 OPTFLAGS="${CXXFLAGS}" + make all4 OPTFLAGS="${CXXFLAGS}" } package() { cd "${srcdir}/${_pkgname}_${pkgver}" make install \ - DEST_HOME="${pkgdir}/usr" \ - DEST_MAN="${pkgdir}/usr/share/man" \ - DEST_SHARE_DOC="http://www.bugaco.com/7zip" + DEST_DIR="${pkgdir}" \ + DEST_HOME="/usr" \ + DEST_MAN="/usr/share/man" - install -m555 bin/7z.so ${pkgdir}/usr/lib/p7zip/ - sed "s|${pkgdir}/usr|/usr|g" -i "${pkgdir}"/usr/bin/7z{,a,r} - install -Dm755 contrib/VirtualFileSystemForMidnightCommander/u7z "${pkgdir}"/usr/lib/mc/extfs.d/u7z + # Integration with stuff... + install -D contrib/VirtualFileSystemForMidnightCommander/u7z "${pkgdir}"/usr/lib/mc/extfs.d/u7z + install -D GUI/p7zip_32.png "${pkgdir}"/usr/share/icons/hicolor/32x32/apps/p7zip.png + install -d "${pkgdir}"/usr/share/{applications,kde4/services/ServiceMenus} + cp GUI/kde4/* "${pkgdir}"/usr/share/kde4/services/ServiceMenus/ + cp ../7zFM.desktop "${pkgdir}"/usr/share/applications/ + ln -s 7zCon.sfx "${pkgdir}"/usr/lib/p7zip/7z.sfx + + find GUI/help -type d -exec chmod 755 {} \; + cp -r GUI/help "${pkgdir}"/usr/lib/p7zip/ + + chmod -R u+w "${pkgdir}/usr" + +# Install unzip replacement script + install -D -m755 "${srcdir}/unzip" "${pkgdir}/usr/bin/unzip" } + |