aboutsummaryrefslogtreecommitdiffstats
path: root/testing/anthy/APKBUILD
blob: 4e1e9d0175d7a7c2dc6afec478059f8b5bfa90c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Drew DeVault <sir@cmpwn.com>
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="LGPL-2.1-or-later"
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"