mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 12:54:32 +02:00
35 lines
1 KiB
Text
35 lines
1 KiB
Text
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=emacs-cndict
|
|
pkgver=0_git20220514
|
|
_gitrev=fca4952306178942126b2e34231fa8577af89bc2
|
|
pkgrel=0
|
|
_pkgreal=cndict
|
|
pkgdesc="Chinese dictionary for Emacs"
|
|
url="https://github.com/apr3vau/cndict"
|
|
arch="noarch"
|
|
license="GPL-3.0-or-later"
|
|
depends="cmd:emacs"
|
|
makedepends="emacs-nox"
|
|
source="https://github.com/apr3vau/cndict/archive/$_gitrev/emacs-cndict-$_gitrev.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$_gitrev"
|
|
options="!check" # no tests provided
|
|
|
|
build() {
|
|
emacs -batch -q -no-site-file -L . \
|
|
-f batch-byte-compile \
|
|
./*.el
|
|
}
|
|
|
|
package() {
|
|
install -Dvm644 ./*.el ./*.elc \
|
|
-t "$pkgdir"/usr/share/emacs/site-lisp/cndict/
|
|
|
|
cd "$pkgdir"/usr/share/emacs/site-lisp/cndict
|
|
emacs -batch -q -no-site-file \
|
|
-eval "(loaddefs-generate \".\" \"$_pkgreal-loaddefs.el\")"
|
|
}
|
|
|
|
sha512sums="
|
|
d61ba5e9d50a1635c967aa05bddb18a7b478fd565372cf409639412324228bfa8515a2bed384feaf5df751916657e557788be7e84e4004158d3ecb339ad12150 emacs-cndict-fca4952306178942126b2e34231fa8577af89bc2.tar.gz
|
|
"
|