fix de-p1st-locale

This commit is contained in:
Daniel Langbein 2021-05-02 20:04:20 +02:00
parent c866d8895a
commit ee58aef3d9
5 changed files with 13 additions and 16 deletions

View File

@ -10,7 +10,7 @@ function build-with-makepkg() {
case "$?" in
0)
# Copy the build package to /home/custompkgs
cp "${PKG}-"*.pkg.tar.zst /home/custompkgs/ || return $?
cp --no-clobber "${PKG}-"*.pkg.tar.zst /home/custompkgs/ || return $?
;;
13)
# Exit code 13: A package has already been built.
@ -38,8 +38,8 @@ function build-pkg() {
cd "pkg/${PKG}" || return $?
# Build and copy to /home/custompkgs
# build-with-makepkg || {
build-with-aurutils || {
build-with-makepkg || {
# build-with-aurutils || {
echo "Failed to build package ${PKG}!";
FAILED_PKGS+=("${PKG}");
}

View File

@ -2,7 +2,7 @@
_pkgname=locale
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgver=0.0.2
pkgrel=1
pkgdesc="locale and timezone"
arch=('any')
@ -26,8 +26,8 @@ sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 locale.conf "$pkgdir"/etc/locale.conf
install -Dm0544 locale.gen.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/locale.gen.holoscript
install -Dm0644 locale.conf "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/locale.conf
install -Dm0644 locale.gen "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/locale.gen
ln -sf /usr/share/zoneinfo/Europe/Berlin "$pkgdir"/etc/localtime
install -Dm0644 localtime "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/localtime
}

View File

@ -0,0 +1,5 @@
de_DE.UTF-8 UTF-8
# de_DE ISO-8859-1
# de_DE@euro ISO-8859-15
en_US.UTF-8 UTF-8
# en_US ISO-8859-1

View File

@ -1,9 +0,0 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
echo 'de_DE.UTF-8 UTF-8
# de_DE ISO-8859-1
# de_DE@euro ISO-8859-15
en_US.UTF-8 UTF-8
# en_US ISO-8859-1'

View File

@ -0,0 +1 @@
/usr/share/zoneinfo/Europe/Berlin