summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJSH2016-05-08 05:52:07 -0400
committerJSH2016-05-08 05:52:07 -0400
commit0fdb35382b9b621a47b14060b5839a0f36b1d345 (patch)
tree786e37ebda18f7b08f0f74ffe7527101838b33d5 /PKGBUILD
downloadaur-mnemonicode.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f0f21e1920b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: JSH <jsh6789 at gmail dot com>
+# Contributor: Andres Erbsen <andres@krutt.org>
+
+pkgname=mnemonicode
+pkgver=0.73
+pkgrel=3
+pkgdesc="Programs for encoding binary data into a sequence of words"
+depends=('glibc')
+arch=('i686' 'x86_64')
+url="https://github.com/singpolyma/mnemonicode"
+license=('MIT')
+source=("http://ftp.de.debian.org/debian/pool/main/m/$pkgname/${pkgname}_${pkgver}.orig.tar.gz")
+sha256sums=('ada10b875afb13d2b9440a5fa7116a7bd54fe9ef0c4aecf1c7d559c718f13251')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i '/fprintf.*stderr.*mn_wordlist_version/d' mnencode.c # remove a years-old deprecation warning
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ install -Dm644 mnemonic.h "$pkgdir/usr/include/$pkgname/mnemonic.h"
+ install -Dm644 mnemonic.o "$pkgdir/usr/lib/$pkgname/mnemonic.o"
+ install -Dm755 mnencode "$pkgdir/usr/bin/mnencode"
+ install -Dm755 mndecode "$pkgdir/usr/bin/mndecode"
+}