Skip to content
Snippets Groups Projects
Commit 2603fa10 authored by Bart Ribbers's avatar Bart Ribbers Committed by Leo
Browse files

community/anthy: move from testing and modernize

parent 40e2044c
No related branches found
No related tags found
1 merge request!14567community/maliit-keyboard: move from testing
...@@ -8,16 +8,15 @@ url="http://sourceforge.jp/projects/anthy/" ...@@ -8,16 +8,15 @@ url="http://sourceforge.jp/projects/anthy/"
arch="all" arch="all"
license="LGPL-2.1-or-later" license="LGPL-2.1-or-later"
subpackages="$pkgname-dev $pkgname-emacs::noarch" subpackages="$pkgname-dev $pkgname-emacs::noarch"
source="http://dl.sourceforge.jp/anthy/${_filecode}/${pkgname}-${pkgver}.tar.gz" source="http://dl.sourceforge.jp/anthy/$_filecode/anthy-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
prepare() { prepare() {
default_prepare default_prepare
update_config_sub update_config_sub
} }
build() { build() {
cd "$builddir"
./configure \ ./configure \
--host=$CHOST \ --host=$CHOST \
--build=$CBUILD \ --build=$CBUILD \
...@@ -30,12 +29,10 @@ build() { ...@@ -30,12 +29,10 @@ build() {
} }
check() { check() {
cd "$builddir"
./src-util/anthy-agent --version ./src-util/anthy-agent --version
} }
package() { package() {
cd "$builddir"
make EMACS=emacs DESTDIR="$pkgdir" install make EMACS=emacs DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/share/emacs rm -rf "$pkgdir"/usr/share/emacs
} }
...@@ -43,13 +40,15 @@ package() { ...@@ -43,13 +40,15 @@ package() {
emacs() { emacs() {
depends="$pkgname" depends="$pkgname"
pkgdesc="emacs support for Anthy" pkgdesc="emacs support for Anthy"
cd "$builddir" cd "$builddir"
make EMACS=emacs DESTDIR="$subpkgdir" install make EMACS=emacs DESTDIR="${subpkgdir:?}" install
rm -rf "$subpkgdir"/etc rm -rf \
rm -rf "$subpkgdir"/usr/bin "${subpkgdir:?}"/etc \
rm -rf "$subpkgdir"/usr/include "${subpkgdir:?}"/usr/bin \
rm -rf "$subpkgdir"/usr/lib "${subpkgdir:?}"/usr/include \
rm -rf "$subpkgdir"/usr/share/anthy "${subpkgdir:?}"/usr/lib \
"${subpkgdir:?}"/usr/share/anthy
} }
sha512sums="315ebd9e1af208f3ecaeaa13620213b35f004e47edb54e60c3e02c2997444cd2326cc58b725dd2d0bd6a723130884d946ea193ea3d92418082256b59ecc8d88b anthy-9100h.tar.gz" sha512sums="315ebd9e1af208f3ecaeaa13620213b35f004e47edb54e60c3e02c2997444cd2326cc58b725dd2d0bd6a723130884d946ea193ea3d92418082256b59ecc8d88b anthy-9100h.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment