summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1fbd48b0e7f56669eb7cfeeae2c98142b0d5258c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Heptazhou <zhou at 0h7z dot com>

pkgname=locale-mul_zz
pkgname_=locale
url="https://github.com/0h7z/$pkgname_"
pkgver_=$(curl -Is $url/releases/latest | grep -Po "^location:.+\/v\K\S+")
pkgver=$(echo $pkgver_ | grep -Po ".+(?=-)")
pkgrel=3
pkgdesc="Multiple locales following UTC, UTF-8, and ISO 8601"
arch=("any")
# url
license=("AGPL3")
depends=("glibc")
install="locale.install"
source=("$pkgname-v$pkgver_.tar.gz::$url/archive/v$pkgver_.tar.gz")
sha256sums=("SKIP")
pkgdir_="usr/share/i18n/locales"

package() {
	cd -- "$srcdir/$pkgname_-$pkgver_/$pkgdir_"
	install -Dm644 -t "$pkgdir/$pkgdir_" "en_ZZ"
	install -Dm644 -t "$pkgdir/$pkgdir_" "zh_ZZ"
}