mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
main/squid: remove usage of linguas variable
Ref https://gitlab.alpinelinux.org/alpine/abuild/-/merge_requests/298
This commit is contained in:
parent
ecd19b65b6
commit
5c1d9fedce
@ -2,7 +2,7 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=squid
|
||||
pkgver=6.10
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
_langpack=20240307
|
||||
pkgdesc="Full-featured Web proxy cache server"
|
||||
url="https://www.squid-cache.org/"
|
||||
@ -18,9 +18,10 @@ makedepends="
|
||||
perl-dev
|
||||
"
|
||||
subpackages="$pkgname-openrc $pkgname-doc"
|
||||
linguas="af ar az bg ca cs da de el es et fa fi fr he hu hy id it ja ka ko lt
|
||||
lv ms nl oc pl pt ro ru sk sl spq sr sv th tr uk uz vi zh"
|
||||
langdir="/usr/share/squid/errors"
|
||||
for _lang in af ar az bg ca cs da de el es et fa fi fr he hu hy id it ja ka ko lt \
|
||||
lv ms nl oc pl pt ro ru sk sl spq sr sv th tr uk uz vi zh; do
|
||||
subpackages="$subpackages $pkgname-lang-$_lang:_lang:noarch"
|
||||
done
|
||||
source="https://www.squid-cache.org/Versions/v${pkgver%%.*}/squid-$pkgver.tar.xz
|
||||
squid-langpack-$_langpack.tar.gz.noauto::https://www.squid-cache.org/Versions/langpack/squid-langpack-$_langpack.tar.gz
|
||||
$pkgname.initd
|
||||
@ -163,6 +164,12 @@ squid_kerb_auth() {
|
||||
amove usr/lib/squid/squid_kerb_auth
|
||||
}
|
||||
|
||||
_lang() {
|
||||
local lang=${subpkgname##*-}
|
||||
pkgdesc="$pkgname language pack for $lang"
|
||||
amove usr/share/squid/errors/$lang*
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c0b75c3d383b1cd234b30dd02e84e1c5655fc53f63b75704bf4bac9ee0b86ba27e4656116893aff8b95dea19ff1befabcbb9dab3875da52fcb65f1d30f0fe5a9 squid-6.10.tar.xz
|
||||
e41fc9bca1f0f98943bc647fc7b468de808814579b39b204ae72d7bea77b26c9d8959764c559faef7873feb8d8dde504cd1d21cf1289b78f3b87b13da834f473 squid-langpack-20240307.tar.gz.noauto
|
||||
|
Loading…
Reference in New Issue
Block a user