2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
2022-08-18 13:29:44 +02:00
|
|
|
# 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"
|
2022-08-18 13:29:44 +02:00
|
|
|
# Website : https://pozol.eu
|
2022-03-20 13:19:37 +01:00
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=lz4
|
|
|
|
epoch=1
|
2022-08-18 13:29:44 +02:00
|
|
|
pkgver=1.9.4
|
|
|
|
pkgrel=01
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='Extremely fast compression algorithm'
|
|
|
|
arch=('x86_64')
|
2022-08-18 13:29:44 +02:00
|
|
|
#url='http://www.lz4.org/'
|
|
|
|
url='https://lz4.github.io/lz4/'
|
2022-03-20 13:19:37 +01:00
|
|
|
makedepends=('git' 'gcc')
|
|
|
|
checkdepends=('diffutils')
|
|
|
|
depends=('glibc')
|
2022-08-18 13:29:44 +02:00
|
|
|
source=("git+https://github.com/lz4/lz4.git#tag=v$pkgver")
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname
|
|
|
|
# apply patch from the source array (should be a pacman feature)
|
|
|
|
local src
|
|
|
|
for src in "${source[@]}"; do
|
|
|
|
src="${src%%::*}"
|
|
|
|
src="${src##*/}"
|
|
|
|
[[ $src = *.patch ]] || continue
|
|
|
|
msg2 "Applying patch $src..."
|
|
|
|
patch -Np1 < "../$src"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
# do not use the main makefile, it calls sub make with -e
|
|
|
|
# exported CLFAGS by makepkg break the version. see FS#50071
|
|
|
|
cd $pkgname
|
|
|
|
make -C lib PREFIX=/usr
|
|
|
|
make -C programs PREFIX=/usr lz4 lz4c
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
rm -f passwd.lz4
|
|
|
|
$pkgname/programs/lz4 /etc/passwd passwd.lz4
|
|
|
|
$pkgname/programs/lz4 -d passwd.lz4 passwd
|
|
|
|
diff -q /etc/passwd passwd
|
|
|
|
rm passwd
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
make install PREFIX=/usr DESTDIR="$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
|
|
|
|
license=('GPL2')
|
|
|
|
|
2022-08-18 13:29:44 +02:00
|
|
|
sha256sums=(SKIP)
|