upg lz4
This commit is contained in:
parent
e76da9d18c
commit
4f06bd3c1f
3 changed files with 28 additions and 26 deletions
32
lz4/PKGBUILD
32
lz4/PKGBUILD
|
@ -8,11 +8,11 @@
|
||||||
pkgname=lz4
|
pkgname=lz4
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgver=1.10.0
|
pkgver=1.10.0
|
||||||
pkgrel=01
|
pkgrel=02
|
||||||
pkgdesc='Extremely fast compression algorithm'
|
pkgdesc='Extremely fast compression algorithm'
|
||||||
#url='http://www.lz4.org/'
|
#url='http://www.lz4.org/'
|
||||||
url='https://lz4.github.io/lz4/'
|
url='https://lz4.github.io/lz4/'
|
||||||
makedepends=('git' 'cmake' 'ninja')
|
makedepends=('git' 'meson' 'ninja')
|
||||||
checkdepends=('diffutils')
|
checkdepends=('diffutils')
|
||||||
depends=('glibc')
|
depends=('glibc')
|
||||||
provides=('liblz4.so')
|
provides=('liblz4.so')
|
||||||
|
@ -32,24 +32,30 @@ source=("git+https://github.com/lz4/lz4.git#tag=v$pkgver")
|
||||||
#}
|
#}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cmake -B build -S "$pkgname"/build/cmake \
|
# cmake -B build -S "$pkgname"/build/cmake \
|
||||||
-G Ninja \
|
# -G Ninja \
|
||||||
-DCMAKE_BUILD_TYPE='None' \
|
# -DCMAKE_BUILD_TYPE='None' \
|
||||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
# -DCMAKE_INSTALL_PREFIX='/usr' \
|
||||||
-Wno-dev
|
# -Wno-dev
|
||||||
cmake --build build
|
# 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() {
|
check() {
|
||||||
rm -f passwd.lz4
|
rm -f passwd.lz4
|
||||||
build/lz4 /etc/passwd passwd.lz4
|
# build/lz4 /etc/passwd passwd.lz4
|
||||||
build/lz4 -d passwd.lz4 passwd
|
# 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
|
diff -q /etc/passwd passwd
|
||||||
rm passwd
|
rm passwd
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
DESTDIR="$pkgdir" cmake --install build
|
# DESTDIR="$pkgdir" cmake --install build
|
||||||
|
meson install -C build --destdir "$pkgdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
#---- arch license gpg-key & sha256sums ----
|
#---- arch license gpg-key & sha256sums ----
|
||||||
|
@ -65,6 +71,4 @@ sha256sums=(487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555) #
|
||||||
#echo "you must rename this package to meet SF naming before you move to the repo"
|
#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
|
#mv $(ls -l $pkgname*pkg.tar.lz) $pkgname-$epoch_$pkgver-$pkgrel-$arch.pkg.tar.lz >pkg-mv.log
|
||||||
|
|
||||||
sha256sums=('487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555')
|
## c950d3c2c43f80b767261446b9692acd900371a49855a58c13c69994b403e1ff lz4-1_1.10.0-02-x86_64.pkg.tar.lz
|
||||||
|
|
||||||
## 30d286cf9c6d8306735ffd5e34be6cce430c41bc2211a3d8d98748f483ee1b8e lz4-1_1.10.0-01-x86_64.pkg.tar.lz
|
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
pkgname=lz4
|
pkgname=lz4
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgver=1.10.0
|
pkgver=1.10.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='Extremely fast compression algorithm'
|
pkgdesc='Extremely fast compression algorithm'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='https://lz4.github.io/lz4/'
|
url='https://lz4.github.io/lz4/'
|
||||||
license=('GPL-2.0-or-later')
|
license=('GPL-2.0-or-later')
|
||||||
makedepends=('git' 'cmake' 'ninja')
|
makedepends=('git' 'meson' 'ninja')
|
||||||
checkdepends=('diffutils')
|
checkdepends=('diffutils')
|
||||||
depends=('glibc')
|
depends=('glibc')
|
||||||
provides=('liblz4.so')
|
provides=('liblz4.so')
|
||||||
|
@ -16,24 +16,21 @@ source=("git+https://github.com/lz4/lz4.git#tag=v$pkgver")
|
||||||
sha256sums=('487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555')
|
sha256sums=('487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cmake -B build -S "$pkgname"/build/cmake \
|
meson setup --prefix=/usr --buildtype=plain lz4/build/meson build
|
||||||
-G Ninja \
|
meson configure build -Dcontrib=true -Dexamples=true -Dprograms=true
|
||||||
-DCMAKE_BUILD_TYPE='None' \
|
meson compile -C build
|
||||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
|
||||||
-Wno-dev
|
|
||||||
cmake --build build
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
rm -f passwd.lz4
|
rm -f passwd.lz4
|
||||||
build/lz4 /etc/passwd passwd.lz4
|
build/meson/programs/lz4 /etc/passwd passwd.lz4
|
||||||
build/lz4 -d passwd.lz4 passwd
|
build/meson/programs/lz4 -d passwd.lz4 passwd
|
||||||
diff -q /etc/passwd passwd
|
diff -q /etc/passwd passwd
|
||||||
rm passwd
|
rm passwd
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
DESTDIR="$pkgdir" cmake --install build
|
meson install -C build --destdir "$pkgdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
3
lz4/deps
3
lz4/deps
|
@ -1,4 +1,5 @@
|
||||||
git
|
git
|
||||||
cmake
|
meson
|
||||||
ninja
|
ninja
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue