This commit is contained in:
joborun linux 2024-07-29 01:07:10 +03:00
parent e76da9d18c
commit 4f06bd3c1f
3 changed files with 28 additions and 26 deletions

View file

@ -8,11 +8,11 @@
pkgname=lz4
epoch=1
pkgver=1.10.0
pkgrel=01
pkgrel=02
pkgdesc='Extremely fast compression algorithm'
#url='http://www.lz4.org/'
url='https://lz4.github.io/lz4/'
makedepends=('git' 'cmake' 'ninja')
makedepends=('git' 'meson' 'ninja')
checkdepends=('diffutils')
depends=('glibc')
provides=('liblz4.so')
@ -32,24 +32,30 @@ source=("git+https://github.com/lz4/lz4.git#tag=v$pkgver")
#}
build() {
cmake -B build -S "$pkgname"/build/cmake \
-G Ninja \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
cmake --build build
# cmake -B build -S "$pkgname"/build/cmake \
# -G Ninja \
# -DCMAKE_BUILD_TYPE='None' \
# -DCMAKE_INSTALL_PREFIX='/usr' \
# -Wno-dev
# cmake --build build
meson setup --prefix=/usr --buildtype=plain lz4/build/meson build
meson configure build -Dcontrib=true -Dexamples=true -Dprograms=true
meson compile -C build
}
check() {
rm -f passwd.lz4
build/lz4 /etc/passwd passwd.lz4
build/lz4 -d passwd.lz4 passwd
# build/lz4 /etc/passwd passwd.lz4
# build/lz4 -d passwd.lz4 passwd
build/meson/programs/lz4 /etc/passwd passwd.lz4
build/meson/programs/lz4 -d passwd.lz4 passwd
diff -q /etc/passwd passwd
rm passwd
}
package() {
DESTDIR="$pkgdir" cmake --install build
# DESTDIR="$pkgdir" cmake --install build
meson install -C build --destdir "$pkgdir"
}
#---- arch license gpg-key & sha256sums ----
@ -64,7 +70,5 @@ sha256sums=(487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555) #
#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
sha256sums=('487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555')
## 30d286cf9c6d8306735ffd5e34be6cce430c41bc2211a3d8d98748f483ee1b8e lz4-1_1.10.0-01-x86_64.pkg.tar.lz
## c950d3c2c43f80b767261446b9692acd900371a49855a58c13c69994b403e1ff lz4-1_1.10.0-02-x86_64.pkg.tar.lz

View file

@ -3,12 +3,12 @@
pkgname=lz4
epoch=1
pkgver=1.10.0
pkgrel=1
pkgrel=2
pkgdesc='Extremely fast compression algorithm'
arch=('x86_64')
url='https://lz4.github.io/lz4/'
license=('GPL-2.0-or-later')
makedepends=('git' 'cmake' 'ninja')
makedepends=('git' 'meson' 'ninja')
checkdepends=('diffutils')
depends=('glibc')
provides=('liblz4.so')
@ -16,24 +16,21 @@ source=("git+https://github.com/lz4/lz4.git#tag=v$pkgver")
sha256sums=('487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555')
build() {
cmake -B build -S "$pkgname"/build/cmake \
-G Ninja \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
cmake --build build
meson setup --prefix=/usr --buildtype=plain lz4/build/meson build
meson configure build -Dcontrib=true -Dexamples=true -Dprograms=true
meson compile -C build
}
check() {
rm -f passwd.lz4
build/lz4 /etc/passwd passwd.lz4
build/lz4 -d passwd.lz4 passwd
build/meson/programs/lz4 /etc/passwd passwd.lz4
build/meson/programs/lz4 -d passwd.lz4 passwd
diff -q /etc/passwd passwd
rm passwd
}
package() {
DESTDIR="$pkgdir" cmake --install build
meson install -C build --destdir "$pkgdir"
}
# vim:set ts=2 sw=2 et:

View file

@ -1,4 +1,5 @@
git
cmake
meson
ninja