diff options
author | Kr1ss | 2019-08-24 15:09:16 +0200 |
---|---|---|
committer | Kr1ss | 2019-08-24 15:30:00 +0200 |
commit | 895f7874a5ae4bfdd968599d1505ad8b7d92dc85 (patch) | |
tree | 0c45de6f16283bba91d9e69725acedc393d919c2 /PKGBUILD | |
parent | 036cb8f2003eb608deb5187ac568f01783b93ded (diff) | |
download | aur-895f7874a5ae4bfdd968599d1505ad8b7d92dc85.tar.gz |
fix floating point issue with some locales
The script assumes being run in a locale where the decimal point is `.`
causing it to fail when `printf` actually expects something else, like
a `,`.
This patch simply sets the `LC_NUMERIC` environment variable to `C` for
the affected `printf` statements.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -6,7 +6,7 @@ pkgver() { printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } pkgver=r134.66c12ce -pkgrel=1 +pkgrel=2 pkgdesc='A command-line interface for Reddit written in POSIX sh' arch=('any') @@ -16,19 +16,21 @@ license=('custom:MIT') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") -depends=('curl' 'jq') +depends=('dash' 'curl' 'jq') optdepends=('gnu-netcat: authenticate with your Reddit account credentials' 'openbsd-netcat: authenticate with your Reddit account credentials') makedepends=('git') changelog=ISSUES -source=("git+$url") -sha256sums=('SKIP') +source=("git+$url" 'archlinux.patch') +sha256sums=('SKIP' 'd56a36a70ea279778a60e8b827c80166189584dce54bdeeccb8f33a047419157') prepare() { cd "${pkgname%-git}" - # Arch packages are never ever installed to /usr/local/ - sed -i 's|/usr/local/|/usr/|g' "${pkgname%-git}" + # Bash's printf statement may fail when using `.` as decimal point under + # certain locales, so for the time being we set `LC_ALL` to `C`. + # Also, Arch packages are never ever installed to `/usr/local/`. + patch -Np1 <../archlinux.patch } package() { |