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
|
2024-07-25 13:06:08 +02:00
|
|
|
pkgver=1.10.0
|
|
|
|
pkgrel=01
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='Extremely fast compression algorithm'
|
2022-08-18 13:29:44 +02:00
|
|
|
#url='http://www.lz4.org/'
|
|
|
|
url='https://lz4.github.io/lz4/'
|
2023-12-25 18:21:36 +01:00
|
|
|
makedepends=('git' 'cmake' 'ninja')
|
2022-03-20 13:19:37 +01:00
|
|
|
checkdepends=('diffutils')
|
|
|
|
depends=('glibc')
|
2024-07-25 13:06:08 +02:00
|
|
|
provides=('liblz4.so')
|
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
|
|
|
|
2023-12-25 18:21:36 +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
|
|
|
|
#}
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
build() {
|
2023-12-25 18:21:36 +01:00
|
|
|
cmake -B build -S "$pkgname"/build/cmake \
|
|
|
|
-G Ninja \
|
|
|
|
-DCMAKE_BUILD_TYPE='None' \
|
|
|
|
-DCMAKE_INSTALL_PREFIX='/usr' \
|
|
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
rm -f passwd.lz4
|
2023-12-25 18:21:36 +01:00
|
|
|
build/lz4 /etc/passwd passwd.lz4
|
|
|
|
build/lz4 -d passwd.lz4 passwd
|
2022-03-20 13:19:37 +01:00
|
|
|
diff -q /etc/passwd passwd
|
|
|
|
rm passwd
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-12-25 18:21:36 +01:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|
|
|
|
|
2023-08-05 02:08:12 +02:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2024-07-25 13:06:08 +02:00
|
|
|
license=('GPL-2.0-or-later')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2024-07-25 13:06:08 +02:00
|
|
|
sha256sums=(487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555) # lz4 1.10.0
|
2023-08-05 02:08:12 +02:00
|
|
|
|
2023-12-25 18:21:36 +01:00
|
|
|
# Note to packager:
|
|
|
|
#ls -l *pkg.tar.lz
|
|
|
|
#echo "you must rename this package to meet SF naming before you move to the repo"
|
|
|
|
#mv $(ls -l $pkgname*pkg.tar.lz) $pkgname-$epoch_$pkgver-$pkgrel-$arch.pkg.tar.lz >pkg-mv.log
|
2023-08-05 02:08:12 +02:00
|
|
|
|
2024-07-25 13:06:08 +02:00
|
|
|
sha256sums=('487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555')
|
|
|
|
|
|
|
|
## 30d286cf9c6d8306735ffd5e34be6cce430c41bc2211a3d8d98748f483ee1b8e lz4-1_1.10.0-01-x86_64.pkg.tar.lz
|