Subject: [alpine-aports] [PATCH] testing/anthy: new aport

From: Drew DeVault <[email-masked]>
Date: Mon, 15 Jan 2018 13:19:18 -0500

---
 testing/anthy/APKBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 testing/anthy/APKBUILD

diff --git a/testing/anthy/APKBUILD b/testing/anthy/APKBUILD
new file mode 100644
index 0000000000..aef8edaaf8
--- /dev/null
+++ b/testing/anthy/APKBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=anthy
+pkgver=9100h
+_filecode=37536
+pkgrel=0
+pkgdesc="Hiragana text to Kana Kanji mixed text Japanese input method"
+url="http://sourceforge.jp/projects/anthy/"
+arch="all"
+license="GPL"
+subpackages="$pkgname-dev $pkgname-emacs::noarch"
+source="http://dl.sourceforge.jp/anthy/${_filecode}/${pkgname}-${pkgver}.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	./configure \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--localstatedir=/var
+	make
+}
+
+check() {
+	cd "$builddir"
+	./src-util/anthy-agent --version
+}
+
+package() {
+	cd "$builddir"
+	make EMACS=emacs DESTDIR="$pkgdir" install
+	rm -rf "$pkgdir"/usr/share/emacs
+}
+
+emacs() {
+	depends="$pkgname"
+	pkgdesc="emacs support for Anthy"
+	cd "$builddir"
+	make EMACS=emacs DESTDIR="$subpkgdir" install
+	rm -rf "$subpkgdir"/etc
+	rm -rf "$subpkgdir"/usr/bin
+	rm -rf "$subpkgdir"/usr/include
+	rm -rf "$subpkgdir"/usr/lib
+	rm -rf "$subpkgdir"/usr/share/anthy
+}
+
+sha512sums="315ebd9e1af208f3ecaeaa13620213b35f004e47edb54e60c3e02c2997444cd2326cc58b725dd2d0bd6a723130884d946ea193ea3d92418082256b59ecc8d88b  anthy-9100h.tar.gz"
-- 
2.15.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---