upg gssproxy glibc python sudo zstd wireless-regdb

This commit is contained in:
joborun linux 2022-06-08 03:54:58 +03:00
parent 90581ad6ca
commit 2e30a19598
20 changed files with 121 additions and 91 deletions

View file

@ -11,9 +11,8 @@
pkgbase=glibc
pkgname=(glibc lib32-glibc)
pkgver=2.35
_commit=28ea43f8d64f0dd1f2de75525157730e1532e600
pkgrel=05
_commit=d7d1eebd4d5806be55ffacbf18917ad68d4ae7fd
pkgrel=06
arch=(x86_64)
url='https://www.gnu.org/software/libc'
makedepends=(git gd lib32-gcc-libs python)
@ -110,6 +109,9 @@ build() {
echo "CFLAGS += -Wp,-D_FORTIFY_SOURCE=2" >> configparms
make -O
# pregenerate C.UTF-8 locale until it is built into glibc
# (https://sourceware.org/glibc/wiki/Proposals/C.UTF-8, FS#74864)
locale/localedef -c -f ../glibc/localedata/charmaps/UTF-8 -i ../glibc/localedata/locales/C ../C.UTF-8/
}
## Credits for skip_test() and check() @allanmcrae
@ -176,6 +178,11 @@ package_glibc() {
sed -e '1,3d' -e 's|/| |g' -e 's|\\| |g' -e 's|^|#|g' \
"$srcdir/glibc/localedata/SUPPORTED" >> "$pkgdir/etc/locale.gen"
# install C.UTF-8 so that it is always available
install -dm755 "$pkgdir/usr/lib/locale"
cp -r "$srcdir/C.UTF-8" -t "$pkgdir/usr/lib/locale"
sed -i '/#C\.UTF-8 /d' "$pkgdir/etc/locale.gen"
# Provide tracing probes to libstdc++ for exceptions, possibly for other
# libraries too. Useful for gdb's catch command.
install -Dm644 "$srcdir/sdt.h" "$pkgdir/usr/include/sys/sdt.h"

View file

@ -9,8 +9,8 @@
pkgbase=glibc
pkgname=(glibc lib32-glibc)
pkgver=2.35
_commit=28ea43f8d64f0dd1f2de75525157730e1532e600
pkgrel=5
_commit=d7d1eebd4d5806be55ffacbf18917ad68d4ae7fd
pkgrel=6
arch=(x86_64)
url='https://www.gnu.org/software/libc'
license=(GPL LGPL)
@ -27,7 +27,7 @@ validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # Carlos O'Donell
BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
b2sums=('SKIP'
'46d533d25c7a2ce4ae75d452eee7ebb8e3ce4d191af9be3daa43718b78cb81d33cfd8046a117a15d87de9f5e940448c66005b0490515bf731c9e4691c53908d6'
'1f6d927b4972220b1c00abee5329c5d6bc01ed5bee57b20db0c7d7433292f7d666b02baf9968267f8e378b1f3bb273e8eef0ccbf22d21400ac36949d7615a474'
'04fbb3b0b28705f41ccc6c15ed5532faf0105370f22133a2b49867e790df0491f5a1255220ff6ebab91a462f088d0cf299491b3eb8ea53534cb8638a213e46e3'
'7c265e6d36a5c0dff127093580827d15519b6c7205c2e1300e82f0fb5b9dd00b6accb40c56581f18179c4fbbc95bd2bf1b900ace867a83accde0969f7b609f8a'
'a6a5e2f2a627cc0d13d11a82458cfd0aa75ec1c5a3c7647e5d5a3bb1d4c0770887a3909bfda1236803d5bc9801bfd6251e13483e9adf797e4725332cd0d91a0e'
'214e995e84b342fe7b2a7704ce011b7c7fc74c2971f98eeb3b4e677b99c860addc0a7d91b8dc0f0b8be7537782ee331999e02ba48f4ccc1c331b60f27d715678'
@ -115,6 +115,9 @@ build() {
echo "CFLAGS += -Wp,-D_FORTIFY_SOURCE=2" >> configparms
make -O
# pregenerate C.UTF-8 locale until it is built into glibc
# (https://sourceware.org/glibc/wiki/Proposals/C.UTF-8, FS#74864)
locale/localedef -c -f ../glibc/localedata/charmaps/UTF-8 -i ../glibc/localedata/locales/C ../C.UTF-8/
}
# Credits for skip_test() and check() @allanmcrae
@ -182,6 +185,11 @@ package_glibc() {
sed -e '1,3d' -e 's|/| |g' -e 's|\\| |g' -e 's|^|#|g' \
"$srcdir/glibc/localedata/SUPPORTED" >> "$pkgdir/etc/locale.gen"
# install C.UTF-8 so that it is always available
install -dm755 "$pkgdir/usr/lib/locale"
cp -r "$srcdir/C.UTF-8" -t "$pkgdir/usr/lib/locale"
sed -i '/#C\.UTF-8 /d' "$pkgdir/etc/locale.gen"
# Provide tracing probes to libstdc++ for exceptions, possibly for other
# libraries too. Useful for gdb's catch command.
install -Dm644 "$srcdir/sdt.h" "$pkgdir/usr/include/sys/sdt.h"

View file

@ -1,5 +1,5 @@
real 9m59.732s
user 26m46.250s
sys 4m8.353s
real 19m42.989s
user 35m4.366s
sys 4m27.027s

View file

@ -6,8 +6,8 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=gssproxy
pkgver=0.8.4
pkgrel=02
pkgver=0.9.1
pkgrel=01
pkgdesc="GSSAPI Proxy w/o systemd - deprecated after 0.9.0"
# This was a dependency of nfs-utils and its dependents
# We opted in building nfs-utils without gssproxy (like Void does)
@ -19,13 +19,16 @@ url="https://github.com/gssapi/gssproxy"
depends=('krb5' 'popt' 'ding-libs')
makedepends=('libxslt' 'docbook-xsl' 'doxygen' 'po4a')
options=('emptydirs' 'makeflags')
backup=(etc/gssproxy/{gssproxy,24-nfs-server,80-httpd,99-nfs-client}.conf
etc/gss/mech.d/gssproxy.conf)
backup=(etc/gssproxy/{gssproxy,24-nfs-server,80-httpd,99-network-fs-clients}.conf
etc/gss/mech.d/proxymech.conf)
source=(https://github.com/gssapi/gssproxy/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
prepare() {
cd "$srcdir/gssproxy-$pkgver"
# delete unneeded service dependency
sed -i "/# GSSPROXY will not be started until syslog is/d" systemd/gssproxy.service.in
# sed -i "s/syslog.target //" systemd/gssproxy.service.in
autoreconf -vfi
}
@ -44,6 +47,7 @@ build() {
--without-selinux \
--with-initscript=none \
--with-gpp-default-behavior=REMOTE_FIRST
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
@ -53,6 +57,7 @@ check() {
make test_proxymech
}
package() {
cd gssproxy-$pkgver
make DESTDIR=$pkgdir install
@ -65,12 +70,12 @@ package() {
install -m644 examples/gssproxy.conf "$pkgdir"/etc/gssproxy/gssproxy.conf
# nfs services
install -m644 examples/24-nfs-server.conf "$pkgdir"/etc/gssproxy/24-nfs-server.conf
install -m644 examples/99-nfs-client.conf "$pkgdir"/etc/gssproxy/99-nfs-client.conf
install -m644 examples/99-network-fs-clients.conf "$pkgdir"/etc/gssproxy/99-network-fs-clients.conf
# httpd service / use Arch UID/GID http/33 (by pkg filesystem)
install -m644 examples/80-httpd.conf "$pkgdir"/etc/gssproxy/80-httpd.conf
sed -i -e "s:euid = apache:euid = http:" "$pkgdir"/etc/gssproxy/80-httpd.conf
install -Dm644 examples/mech "$pkgdir"/etc/gss/mech.d/gssproxy.conf
# install -Dm644 examples/mech "$pkgdir"/etc/gss/mech.d/gssproxy.conf
# FS#51574
install -m700 -d ${pkgdir}/var/lib/gssproxy/rcache
@ -82,4 +87,4 @@ package() {
license=('custom: MIT')
sha256sums=(cf1eb125d6273d7fb2fd382581653b4da24abe2b13e054a3400d22bf2448b8c6) # gssproxy-0.8.4.tar.gz
sha256sums=(ebc355c1495db96e3591574f32b9464fcfbf73381ce8fcb397cdede220167dc4) # gssproxy-0.9.1.tar.gz

View file

@ -2,19 +2,20 @@
# Contributor: Mantas Mikulėnas <grawity@gmail.com>
pkgname=gssproxy
pkgver=0.8.4
pkgver=0.9.1
pkgrel=1
pkgdesc="GSSAPI Proxy"
arch=(x86_64)
url="https://github.com/gssapi/gssproxy"
license=('custom: MIT')
depends=('krb5' 'popt' 'ding-libs')
depends=('krb5' 'popt' 'ding-libs' 'systemd-libs')
makedepends=('libxslt' 'systemd' 'docbook-xsl' 'doxygen' 'po4a')
options=('emptydirs' 'makeflags')
backup=(etc/gssproxy/{gssproxy,24-nfs-server,80-httpd,99-nfs-client}.conf
etc/gss/mech.d/gssproxy.conf)
backup=(etc/gssproxy/{gssproxy,24-nfs-server,80-httpd,99-network-fs-clients}.conf
etc/gss/mech.d/proxymech.conf)
source=(https://github.com/gssapi/gssproxy/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
sha512sums=('ab81c40d6c7b1908751feb107d8da66603b7681fb67aa7a1f30194a81d542ca89e6c2f34425e9356b9c55eb3691bfa240ba41441c01498af45e862a133cd088a')
# https://github.com/gssapi/gssproxy/releases/download/v0.9.1/gssproxy-0.9.1.tar.gz.sha512sum.txt
sha512sums=('767c4e73d5240a43a0586e836e7dc199b8baf0adbc5a1a2cbb6ffc6f0a7ca574a4fc541ca474ef696d78956724eb24c465760f680e7170f8d77d056513b6226b')
prepare() {
cd "$srcdir/gssproxy-$pkgver"
@ -40,7 +41,7 @@ build() {
--without-selinux \
--with-initscript=systemd \
--with-gpp-default-behavior=REMOTE_FIRST
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
@ -62,12 +63,12 @@ package() {
install -m644 examples/gssproxy.conf "$pkgdir"/etc/gssproxy/gssproxy.conf
# nfs services
install -m644 examples/24-nfs-server.conf "$pkgdir"/etc/gssproxy/24-nfs-server.conf
install -m644 examples/99-nfs-client.conf "$pkgdir"/etc/gssproxy/99-nfs-client.conf
install -m644 examples/99-network-fs-clients.conf "$pkgdir"/etc/gssproxy/99-network-fs-clients.conf
# httpd service / use Arch UID/GID http/33 (by pkg filesystem)
install -m644 examples/80-httpd.conf "$pkgdir"/etc/gssproxy/80-httpd.conf
sed -i -e "s:euid = apache:euid = http:" "$pkgdir"/etc/gssproxy/80-httpd.conf
install -Dm644 examples/mech "$pkgdir"/etc/gss/mech.d/gssproxy.conf
# install -Dm644 examples/mech "$pkgdir"/etc/gss/mech.d/gssproxy.conf
# FS#51574
install -m700 -d ${pkgdir}/var/lib/gssproxy/rcache

View file

@ -7,4 +7,3 @@ po4a
autoconf
automake

View file

@ -1,28 +1,29 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
shopt -s extglob
pkgbase=python
pkgname=(python python-tests)
pkgver=3.10.4
pkgrel=02
pkgver=3.10.5
pkgrel=01
_pybasever=${pkgver%.*}
pkgdesc="Next generation of the python high-level scripting language - no ipv6 "
arch=('x86_64')
url="https://www.python.org/"
depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib')
makedepends=('tk' 'sqlite' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 'xorg-server-xvfb' 'ttf-font')
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
https://github.com/python/cpython/commit/178a238f25ab8aff7689d7a09d66dc1583ecd6cb.patch)
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
# https://github.com/python/cpython/commit/178a238f25ab8aff7689d7a09d66dc1583ecd6cb.patch)
prepare() {
cd Python-${pkgver}
# FS#73002
patch -p1 -i ../178a238f25ab8aff7689d7a09d66dc1583ecd6cb.patch
# # FS#73002
# patch -p1 -i ../178a238f25ab8aff7689d7a09d66dc1583ecd6cb.patch
# FS#23997
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
@ -152,6 +153,5 @@ validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python re
'E3FF2839C048B25C084DEBE9B26995E310250568' # Łukasz Langa (GPG langa.pl) <lukasz@langa.pl>
'A035C8C19219BA821ECEA86B64E628F8D684696D') # Pablo Galindo Salgado <pablogsal@gmail.com>
sha256sums=(80bf925f571da436b35210886cf79f6eb5fa5d6c571316b73568343451f77a19 # Python-3.10.4.tar.xz
a4d5ff92a2743029a7bec2cb8cf07b799c52199d27493d453d38a37036c7d896 # Python-3.10.4.tar.xz.asc
7941c5985507e04cf55675be12d5f6784ac336cfdcd283945f8df525d13c6c82) # 178a238f25ab8aff7689d7a09d66dc1583ecd6cb.patch
sha256sums=(8437efd5b106ef0a75aabfbf23d880625120a73a86a22ade4d2e2e68d7b74486 # Python-3.10.5.tar.xz
80fad2180a1154abcea496ea994bc2504b54ccf6f464b4d82660767d2d4abfe6) # Python-3.10.5.tar.xz.asc

View file

@ -8,8 +8,8 @@ shopt -s extglob
pkgbase=python
pkgname=(python python-tests)
pkgver=3.10.4
pkgrel=2
pkgver=3.10.5
pkgrel=1
_pybasever=${pkgver%.*}
pkgdesc="Next generation of the python high-level scripting language"
arch=('x86_64')
@ -17,11 +17,9 @@ license=('custom')
url="https://www.python.org/"
depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib')
makedepends=('tk' 'sqlite' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 'xorg-server-xvfb' 'ttf-font')
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
https://github.com/python/cpython/commit/178a238f25ab8aff7689d7a09d66dc1583ecd6cb.patch)
sha512sums=('6c9aeecddc55c7896b2e8527fca131c7b2b6127d56ce1a001ccedfebf590334e0c0bb7c517ed3cf1da3c1910e002552b56aa7e03eeb672f42ff0bd8150799113'
'SKIP'
'a76517ddfcbfa7363999016ba6b938677f07350c4c167c49e5837d8711bea1c0d49f3c77706e361b88fe915fba8b2de7dc6dc251afa2d0a93ea03287bbde475d')
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
sha512sums=('aa7f58a9b31de9824185b3e7bfa7da0dcf64ae9e89840664eae9d98d9048a650fa012cd5b873a62ff44b65b856db86f095c4003117406ec5e9583ec5f7e78e90'
'SKIP')
validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python release signing key) <nad@python.org>
'E3FF2839C048B25C084DEBE9B26995E310250568' # Łukasz Langa (GPG langa.pl) <lukasz@langa.pl>
'A035C8C19219BA821ECEA86B64E628F8D684696D') # Pablo Galindo Salgado <pablogsal@gmail.com>
@ -29,9 +27,6 @@ validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python re
prepare() {
cd Python-${pkgver}
# FS#73002
patch -p1 -i ../178a238f25ab8aff7689d7a09d66dc1583ecd6cb.patch
# FS#23997
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py

View file

@ -1,4 +1,5 @@
real 13m25.604s
user 23m35.911s
sys 0m44.118s
real 14m49.056s
user 26m49.578s
sys 0m45.558s

View file

@ -1,11 +1,12 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=sudo
_sudover=1.9.10
_sudover=1.9.11
pkgrel=01
pkgver=${_sudover/p/.p}
pkgdesc="Give certain users the ability to run some commands as root w/o systemd"
@ -77,6 +78,6 @@ license=('custom')
validpgpkeys=('59D1E9CCBA2B376704FDD35BA9F4C021CEA470FB') # "Todd C. Miller <Todd.Miller@sudo.ws>"
sha256sums=(44a1461098e7c7b8e6ac597499c24fb2e43748c0c139a8b4944e57d1349a64f4 # sudo-1.9.10.tar.gz
0aae259dc5cb2b02301ad8d57dde7021e3a771ed1665314c0f3305401409b57e # sudo-1.9.10.tar.gz.sig
sha256sums=(b5476e30d83ca14734da9370f2206beb21c8a33fc85a504fb8a61d18d8b351be # sudo-1.9.11.tar.gz
ba80ffa7fe55ec4b0d644b1253c7cf1a32a35e7b5cc28f6b75f6490901b5f002 # sudo-1.9.11.tar.gz.sig
d1738818070684a5d2c9b26224906aad69a4fea77aabd960fc2675aee2df1fa2) # sudo.pam

View file

@ -3,7 +3,7 @@
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=sudo
_sudover=1.9.10
_sudover=1.9.11
pkgrel=1
pkgver=${_sudover/p/.p}
pkgdesc="Give certain users the ability to run some commands as root"
@ -20,7 +20,7 @@ install=$pkgname.install
source=(https://www.sudo.ws/sudo/dist/$pkgname-$_sudover.tar.gz{,.sig}
sudo_logsrvd.service
sudo.pam)
sha256sums=('44a1461098e7c7b8e6ac597499c24fb2e43748c0c139a8b4944e57d1349a64f4'
sha256sums=('b5476e30d83ca14734da9370f2206beb21c8a33fc85a504fb8a61d18d8b351be'
'SKIP'
'8b91733b73171827c360a3e01f4692772b78e62ceca0cf0fd4b770aba35081a1'
'd1738818070684a5d2c9b26224906aad69a4fea77aabd960fc2675aee2df1fa2')

View file

@ -1 +1,2 @@

View file

@ -1,3 +1,4 @@
real 0m41.807s
user 1m30.447s
sys 0m8.194s
real 0m44.473s
user 1m36.093s
sys 0m9.049s

View file

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=wireless-regdb
pkgver=2022.04.08
pkgver=2022.06.06
pkgrel=01
pkgdesc="Central Regulatory Domain Database"
arch=(any)
@ -42,10 +42,11 @@ package() {
license=('custom')
validpgpkeys=('2ABCA7498D83E1D32D51D3B5AB4800A62DB9F73A') #Seth Forshee <seth.forshee@canonical.com>
validpgpkeys=('2ABCA7498D83E1D32D51D3B5AB4800A62DB9F73A') # Seth Forshee <seth.forshee@canonical.com>
sha256sums=(884ba2e3c1e8b98762b6dc25ff60b5ec75c8d33a39e019b3ed4aa615491460d3 # wireless-regdb-2022.04.08.tar.xz
55bbf5e521cb600f8042e10a9a72e8fdfa2d7aed911f4cf3c95527bdc4dd9e01 # wireless-regdb-2022.04.08.tar.sign
sha256sums=(ac00f97efecce5046ed069d1d93f3365fdf994c7c7854a8fc50831e959537230 # wireless-regdb-2022.06.06.tar.xz
429e92267fb513365100849a1cc5e0014ef90442d41a638928e26eee951155e3 # wireless-regdb-2022.06.06.tar.sign
192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b # wireless-regdom
603ce97da5cce3f5337e99007ce04e2f295bb33a36b308794884011f7bcabaf3 # set-wireless-regdom
f5055dfe7584757a11b419836320bcdcd1d3d1e5caf26e20c63a0c64779f3376) # 85-regulatory.rules

View file

@ -1,7 +1,7 @@
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=wireless-regdb
pkgver=2022.04.08
pkgver=2022.06.06
pkgrel=1
pkgdesc="Central Regulatory Domain Database"
arch=('any')
@ -16,7 +16,7 @@ source=(https://www.kernel.org/pub/software/network/wireless-regdb/${pkgname}-${
wireless-regdom
set-wireless-regdom
85-regulatory.rules)
sha256sums=('884ba2e3c1e8b98762b6dc25ff60b5ec75c8d33a39e019b3ed4aa615491460d3'
sha256sums=('ac00f97efecce5046ed069d1d93f3365fdf994c7c7854a8fc50831e959537230'
'SKIP'
'192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b'
'603ce97da5cce3f5337e99007ce04e2f295bb33a36b308794884011f7bcabaf3'

View file

@ -1 +1,3 @@
iw

View file

@ -6,35 +6,36 @@
pkgname=zstd
pkgver=1.5.2
pkgrel=03
pkgrel=05
pkgdesc='Zstandard - Fast real-time FACEBOOK compression algorithm - avoid as possible'
url='https://facebook.github.io/zstd/'
arch=(x86_64)
depends=(glibc gcc-libs zlib xz lz4)
makedepends=(gtest)
makedepends=(cmake gtest ninja)
provides=(libzstd.so)
#options=(debug)
# options=(debug staticlibs) ## uncomment this to produce the debug pkg
options=(staticlibs)
source=(https://github.com/facebook/zstd/releases/download/v${pkgver}/zstd-${pkgver}.tar.zst{,.sig})
build() {
cd ${pkgname}-${pkgver}
# Set PREFIX, as libzstd.pc is otherwise generated with -L/usr/local
make PREFIX=/usr
make -C contrib/pzstd
cmake -S ${pkgname}-${pkgver}/build/cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DZSTD_BUILD_CONTRIB=ON \
-DZSTD_BUILD_TESTS=ON
cmake --build build
}
check() {
cd ${pkgname}-${pkgver}
make check
make -C contrib/pzstd test
cd build/tests
ctest
}
package() {
cd ${pkgname}-${pkgver}
make PREFIX=/usr DESTDIR="${pkgdir}" install
DESTDIR="${pkgdir}" cmake --install build
ln -sf /usr/bin/zstd "${pkgdir}/usr/bin/zstdmt"
install -Dm 755 contrib/pzstd/pzstd -t "${pkgdir}/usr/bin"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 ${pkgname}-${pkgver}/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
#---- license gpg-key sha256sums ----

View file

@ -5,15 +5,15 @@
pkgname=zstd
pkgver=1.5.2
pkgrel=3
pkgrel=5
pkgdesc='Zstandard - Fast real-time compression algorithm'
url='https://facebook.github.io/zstd/'
arch=(x86_64)
license=(BSD GPL2)
depends=(glibc gcc-libs zlib xz lz4)
makedepends=(gtest)
makedepends=(cmake gtest ninja)
provides=(libzstd.so)
options=(debug)
options=(debug staticlibs)
source=(https://github.com/facebook/zstd/releases/download/v${pkgver}/zstd-${pkgver}.tar.zst{,.sig})
sha256sums=('3ea06164971edec7caa2045a1932d757c1815858e4c2b68c7ef812647535c23f'
'SKIP')
@ -22,24 +22,24 @@ b2sums=('513e4526a92bcb59416b3457d186a30e554f9e0cf21d7114eb3e9fbcbd9d662c8d95cf0
validpgpkeys=(4EF4AC63455FC9F4545D9B7DEF8FE99528B52FFD)
build() {
cd ${pkgname}-${pkgver}
# Set PREFIX, as libzstd.pc is otherwise generated with -L/usr/local
make PREFIX=/usr
make -C contrib/pzstd
cmake -S ${pkgname}-${pkgver}/build/cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DZSTD_BUILD_CONTRIB=ON \
-DZSTD_BUILD_TESTS=ON
cmake --build build
}
check() {
cd ${pkgname}-${pkgver}
make check
make -C contrib/pzstd test
cd build/tests
ctest
}
package() {
cd ${pkgname}-${pkgver}
make PREFIX=/usr DESTDIR="${pkgdir}" install
DESTDIR="${pkgdir}" cmake --install build
ln -sf /usr/bin/zstd "${pkgdir}/usr/bin/zstdmt"
install -Dm 755 contrib/pzstd/pzstd -t "${pkgdir}/usr/bin"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 ${pkgname}-${pkgver}/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim: ts=2 sw=2 et:

View file

@ -1 +1,4 @@
gtest
cmake
ninja

View file

@ -3,3 +3,7 @@ real 1m25.090s
user 4m10.858s
sys 0m6.714s
real 33m45.101s
user 33m30.040s
sys 0m25.389s
same edition different Arch configuration of pkg build from 4m to 33m .... nice