summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18ea3a4dbf8ba2face2190a0e030f8f6d796e692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: bgkillas <bgkillas@gmail.com>
pkgname=p7zip-jinfeihan57-git
pkgdesc="Command-line file archiver with high compression ratio - jinfeihan57 fork"
pkgver=v17.04.r6.geb1bbb0
pkgrel=1
arch=('x86_64')
makedepends=('git')
depends=(gcc-libs)
optdepends=()
provides=('p7zip')
conflicts=('p7zip')
url="https://github.com/jinfeihan57/p7zip"
license=('LGPL')
source=('git+https://github.com/jinfeihan57/p7zip.git'
        '7z')
sha512sums=('SKIP'
            'SKIP')
pkgver() {
	cd p7zip
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
            
build () {
	cd p7zip
	make 7z
}

package() {
	mkdir -p "$pkgdir/usr/lib/p7zip/Codecs"
	mkdir -p "$pkgdir/usr/bin"
	install -Dm755 "7z" "$pkgdir/usr/bin/"
	install -Dm755 "$srcdir/p7zip/bin/7z" "$pkgdir/usr/lib/p7zip/"
	install -Dm755 "$srcdir/p7zip/bin/7z.so" "$pkgdir/usr/lib/p7zip/"
	install -Dm755 "$srcdir/p7zip/bin/Codecs/Rar.so" "$pkgdir/usr/lib/p7zip/Codecs"
}