aports/community/libhangul/APKBUILD

45 lines
1.1 KiB
Text

# Contributor: Alex <alex@alexyam.com>
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: mio <miyopan@e.email>
maintainer="mio <miyopan@e.email>"
pkgname=libhangul
pkgver=0.2.0
pkgrel=0
pkgdesc="Library for Korean input method logic"
url="https://github.com/libhangul/libhangul"
arch="all"
license="LGPL-2.1-or-later"
makedepends="automake autoconf libtool gettext-dev xz"
subpackages="$pkgname-dev $pkgname-lang"
source="https://github.com/libhangul/libhangul/archive/refs/tags/libhangul-$pkgver.tar.gz"
builddir="$srcdir/libhangul-libhangul-$pkgver"
prepare() {
default_prepare
# Makefile.am looks for ./ChangeLog
touch ChangeLog
autoreconf -vif
}
build() {
# fix: "libhangul.so: undefined reference to 'libintl_gettext'"
# when building fcitx5-hangul and rime-hangul
export LDFLAGS="$LDFLAGS -lintl"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
3de6cf30d2b8966052993ff782f0901a40bdc209ddd100a48836d9e93bad3e5df54bea93b638ab8e3b18f5814f139ee9b040c4b370e19db4025323b1257c9a6f libhangul-0.2.0.tar.gz
"