diff options
author | patrick brisbin | 2015-06-09 17:20:08 -0400 |
---|---|---|
committer | patrick brisbin | 2015-06-09 17:20:08 -0400 |
commit | 0bdb507e2793e8d22a0738d03b38e479f55c9669 (patch) | |
tree | 9b0cb460d6e201312941e801b80e9b9573436e46 | |
download | aur-0bdb507e2793e8d22a0738d03b38e479f55c9669.tar.gz |
Initial commit of v5.1.3
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cd5db36ba1cd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = downgrade + pkgdesc = Bash script for downgrading one or more packages to a version in your cache or the A.R.M. + pkgver = 5.1.3 + pkgrel = 1 + url = https://github.com/pbrisbin/downgrade + arch = any + license = GPL + optdepends = sudo: for installation via sudo + source = https://github.com/pbrisbin/downgrade/archive/v5.1.3.tar.gz + md5sums = 37e82c18f56e8f0343b57edf7bf4e687 + +pkgname = downgrade + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1c67882c2008 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Author: Patrick Brisbin <pbrisbin@gmail.com> +pkgname=downgrade +pkgver=5.1.3 +pkgrel=1 +pkgdesc="Bash script for downgrading one or more packages to a version in your cache or the A.R.M." +arch=('any') +url="https://github.com/pbrisbin/$pkgname" +license=('GPL') +source=("https://github.com/pbrisbin/$pkgname/archive/v$pkgver.tar.gz") +optdepends=('sudo: for installation via sudo') + +package() { + local po_file + + cd "$pkgname-$pkgver" + + for po_file in locale/*.po; do + locale="$(basename "$po_file" .po)" + + mkdir -p "$pkgdir/usr/share/locale/$locale/LC_MESSAGES/" + msgfmt "$po_file" -o "$pkgdir/usr/share/locale/$locale/LC_MESSAGES/$pkgname.mo" + done + + make PREFIX=/usr DESTDIR="$pkgdir" install +} +md5sums=('37e82c18f56e8f0343b57edf7bf4e687') |