core/p7zip/PKGBUILD

45 lines
1.2 KiB
Bash
Raw Normal View History

2012-11-23 05:43:12 +08:00
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/p7zip/
2010-05-24 23:40:27 +08:00
pkgname=p7zip
2012-11-23 05:43:12 +08:00
pkgver=9.20.1
pkgrel=2
2010-05-24 23:40:27 +08:00
pkgdesc="A command-line port of the 7zip compression utility"
2012-11-23 05:43:12 +08:00
arch=('x86_64')
2010-05-24 23:40:27 +08:00
license=('GPL')
url="http://p7zip.sourceforge.net"
depends=('gcc-libs' 'bash')
2012-11-23 05:43:12 +08:00
makedepends=('yasm' 'nasm')
options=('!makeflags')
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}_${pkgver}_src_all.tar.bz2"
7z.desktop)
md5sums=('bd6caaea567dc0d995c990c5cc883c89'
'4a21a2c956840140a0ee859440968751')
2010-05-24 23:40:27 +08:00
build() {
2012-11-23 05:43:12 +08:00
cd "${srcdir}/${pkgname}_${pkgver}"
2010-05-24 23:40:27 +08:00
2012-11-23 05:43:12 +08:00
cp makefile.linux_amd64_asm makefile.machine
2010-05-24 23:40:27 +08:00
2012-11-23 05:43:12 +08:00
make all3 OPTFLAGS="${CXXFLAGS}"
}
package() {
cd "${srcdir}/${pkgname}_${pkgver}"
make install \
DEST_DIR="${pkgdir}" \
DEST_HOME="/usr" \
DEST_MAN="/usr/share/man"
2010-05-24 23:40:27 +08:00
2012-11-23 05:43:12 +08:00
# Licenses
install -d "${pkgdir}"/usr/share/licenses/p7zip
ln -s -t "${pkgdir}"/usr/share/licenses/p7zip \
/usr/share/doc/p7zip/DOCS/License.txt \
/usr/share/doc/p7zip/DOCS/unRarLicense.txt
2010-05-24 23:40:27 +08:00
2012-11-23 05:43:12 +08:00
# Integration with stuff...
ln -s 7zCon.sfx "${pkgdir}"/usr/lib/p7zip/7z.sfx
chmod -R u+w "${pkgdir}/usr"
2010-05-24 23:40:27 +08:00
}