pkgs/libarchive/PKGBUILD

36 lines
776 B
Text
Raw Normal View History

2023-12-05 04:47:04 +00:00
# Maintainer: Dan McGee <dan@archlinux.org>
pkgname=libarchive
pkgver=3.7.2
pkgrel=1
2023-12-08 02:05:38 +00:00
pkgdesc="Multi-format archive and compression library"
arch=("x86_64")
url="https://libarchive.org/"
license=("BSD")
2023-12-11 13:18:00 +00:00
depends=("libressl" "acl" "expat" "xz" "zstd" "lz4" "blake2" "bzip2" "zlib-ng")
2023-12-08 02:05:38 +00:00
provides=("tar")
source=("https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
sha256sums=("04357661e6717b6941682cde02ad741ae4819c67a260593dfb2431861b251acb")
2023-12-05 04:47:04 +00:00
build() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
./configure \
--prefix=/usr \
--without-xml2 \
--without-nettle \
--disable-static
make
2023-12-05 04:47:04 +00:00
}
package() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
make DESTDIR=$pkgdir install
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
cd $pkgdir
ln -s bsdtar usr/bin/tar
ln -s bsdcpio usr/bin/cpio
ln -s bsdunzip usr/bin/unzip
2023-12-05 04:47:04 +00:00
}