jobcore/libarchive/PKGBUILD

64 lines
1.9 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libarchive
2023-09-12 12:40:47 +02:00
pkgver=3.7.2
pkgrel=01
2022-08-11 23:51:55 +02:00
pkgdesc='Multi-format archive and compression library'
2022-03-20 13:19:37 +01:00
url='https://libarchive.org/'
2022-11-15 16:49:16 +01:00
depends=('acl' 'libacl.so' 'bzip2' 'expat' 'lz4' 'openssl' 'xz' 'zlib' 'zstd' 'libcrypto.so')
2022-03-20 13:19:37 +01:00
provides=('libarchive.so')
#options=('debug')
2022-12-12 21:35:52 +01:00
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc})
#prepare() {
# cd "$pkgname-$pkgver"
#
# patch -Np1 < ../0001-libarchive-Handle-a-calloc-returning-NULL-fixes-1754.patch
# patch -Np1 < ../0002-Validate-entry_bytes_remaining-in-pax_attribute.patch
# patch -Np1 < ../0003-libarchive-Do-not-include-sys-mount.h-when-linux-fs..patch
#}
2022-03-20 13:19:37 +01:00
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--without-xml2 \
--without-nettle \
--disable-static
make
}
check() {
cd $pkgname-$pkgver
2022-08-11 23:51:55 +02:00
2022-03-20 13:19:37 +01:00
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
2023-07-19 00:38:47 +02:00
# sed -i "s/iconv //" "$pkgdir"/usr/lib/pkgconfig/libarchive.pc
2022-03-20 13:19:37 +01:00
install -Dm0644 COPYING "$pkgdir/usr/share/licenses/libarchive/COPYING"
}
2023-07-19 00:38:47 +02:00
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
license=('BSD')
2022-12-12 21:35:52 +01:00
validpgpkeys=(A5A45B12AD92D964B89EEE2DEC560C81CEC2276E # Martin Matuska <mm@FreeBSD.org>
DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B) # Martin Matuska <martin@matuska.org>
2023-09-12 12:40:47 +02:00
sha256sums=(04357661e6717b6941682cde02ad741ae4819c67a260593dfb2431861b251acb # libarchive-3.7.2.tar.xz
2c2b98622c2f3e59608118fae3e412c900100ec1bf9f825775930b3a8b4f5635) # libarchive-3.7.2.tar.xz.asc
## d46a5e77ba94d7aef18ccfaffbffb835c00195f205167e1333e931a420f84273 libarchive-3.7.2-01-x86_64.pkg.tar.lz
2022-09-06 22:43:35 +02:00