forked from cielavenir/p7zip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
55 lines (46 loc) · 1.65 KB
/
PKGBUILD
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Taiki Sugawara <[email protected]>
# Contributor: Evangelos Foutras <[email protected]>
# Contributor: Gaetan Bisson <[email protected]>
# Contributor: Thayer Williams <[email protected]>
# Contributor: Hugo Doria <[email protected]>
# Contributor: TuxSpirit<[email protected]>
# Contributor: Daniel J Griffiths <[email protected]>
pkgname=p7zip-full
_pkgname=p7zip-full
pkgver=23.01
pkgrel=1
_upstream_pkgrel=3
pkgdesc="Command-line file archiver with high compression ratio, based on libnatspec patch from ubuntu zip-i18n PPA (https://launchpad.net/~frol/+archive/zip-i18n)."
arch=('x86_64')
url="https://github.com/phoepsilonix/p7zip-full"
license=('LGPL' 'custom:unRAR')
depends=('gcc-libs' 'sh')
makedepends=('mold')
conflicts=('p7zip')
provides=('p7zip')
source=(https://github.com/phoepsilonix/p7zip-full/archive/refs/tags/v$pkgver.$_upstream_pkgrel.tar.gz
https://github.com/phoepsilonix/p7zip-full/releases/download/v$pkgver.$_upstream_pkgrel/p7zip-linux-x86_64-musl.zip)
sha256sums=('SKIP'
'SKIP')
prepare() {
cd $_pkgname-$pkgver.$_upstream_pkgrel
mkdir -p bin/
}
build() {
cd $_pkgname-$pkgver.$_upstream_pkgrel
cp -a ${srcdir}/p7zip bin/
}
package() {
cd $_pkgname-$pkgver.$_upstream_pkgrel
make install \
DEST_DIR="$pkgdir" \
DEST_HOME=/usr \
DEST_MAN=/usr/share/man
# Remove documentation for the GUI file manager
rm -r "$pkgdir/usr/share/doc/p7zip/DOC/MANUAL/fm"
install -d "${pkgdir}"/usr/share/licenses/p7zip
ln -s -t "$pkgdir/usr/share/licenses/p7zip/" \
/usr/share/doc/p7zip/DOC/License.txt \
/usr/share/doc/p7zip/DOC/unRarLicense.txt
}
# vim:set ts=2 sw=2 et: