mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 11:45:36 +02:00
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=emacs-pyim
|
|
pkgver=5.3.4
|
|
pkgrel=0
|
|
_pkgreal=pyim
|
|
pkgdesc="Chinese input method derived from Emacs-eim"
|
|
url="https://github.com/tumashu/pyim"
|
|
arch="noarch"
|
|
license="GPL-3.0-or-later"
|
|
depends="
|
|
cmd:emacs
|
|
emacs-async
|
|
emacs-posframe
|
|
emacs-xr
|
|
"
|
|
makedepends="emacs-nox"
|
|
checkdepends="emacs-pyim-basedict"
|
|
options="!check" # circular dep with emacs-pyim-basedict
|
|
source="https://github.com/tumashu/pyim/archive/v$pkgver/emacs-pyim-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
emacs -batch -q -no-site-file -L . \
|
|
-eval '(setq byte-compile-error-on-warn t)' \
|
|
-f batch-byte-compile \
|
|
./*.el
|
|
}
|
|
|
|
check() {
|
|
emacs -batch -q -no-site-file -L . \
|
|
-l tests/pyim-tests.el
|
|
}
|
|
|
|
package() {
|
|
install -Dvm644 ./*.el ./*.elc \
|
|
-t "$pkgdir"/usr/share/emacs/site-lisp/pyim/
|
|
|
|
cd "$pkgdir"/usr/share/emacs/site-lisp/pyim
|
|
emacs -batch -q -no-site-file \
|
|
-eval "(loaddefs-generate \".\" \"$_pkgreal-loaddefs.el\")"
|
|
}
|
|
|
|
sha512sums="
|
|
59bab9f69c61a7fdcd86acfa696ea3f2e35d455ea115403e73eda24e3f82b76d67b2da4ed79e80fd63f3dd80f44a01e1e6eac75df9ecbd6a3acd46fc65fe08a1 emacs-pyim-5.3.4.tar.gz
|
|
"
|