diff options
-rw-r--r-- | pcr/pacman2pacman/PKGBUILD | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pcr/pacman2pacman/PKGBUILD b/pcr/pacman2pacman/PKGBUILD index d545fbc62..235b9d16a 100644 --- a/pcr/pacman2pacman/PKGBUILD +++ b/pcr/pacman2pacman/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Joseph Graham <joseph@xylon.me.uk> pkgname=pacman2pacman -pkgver=20170610.1 +pkgver=20170611.2 pkgdesc="A plugin for pacman to download packages by bittorrent and seed them back up" url="https://wiki.parabolagnulinux.org/Pacman2pacman" license=('GPL') @@ -13,9 +13,9 @@ pkgrel=1 arch=(any) depends=(transmission-cli) source=("https://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz") -md5sums=('ce4f31f201a7975a2746c6dd67167ae9') +md5sums=('d0f180039d4d5d6e78a9a3a55d332749') -_gitver='commit=5ff043cb7e53981c47a660ef9d392523fada3fb4' +_gitver='commit=bb3865227066d7bd3e10f8977324e9768ac5a317' mksource=("$pkgname-$pkgver::git://git.parabola.nu/pacman2pacman.git/#$_gitver") mkmd5sums=('SKIP') @@ -33,4 +33,13 @@ package() { cp pacman2pacman-get "${pkgdir}/usr/bin" chmod +x "${pkgdir}/usr/bin/pacman2pacman-get" + + for dir in translations/* + do + if [[ -d "${dir}" ]] + then + mkdir -p "${pkgdir}/usr/share/locale/${dir#*/}/LC_MESSAGES/" + msgfmt -o "${pkgdir}/usr/share/locale/${dir#*/}/LC_MESSAGES/pacman2pacman-get.mo" "${dir}/pacman2pacman-get.po" + fi + done } |