1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/emacs-dash/APKBUILD

39 lines
1 KiB
Text

# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=emacs-dash
pkgver=2.20.0
pkgrel=0
_pkgreal=dash
pkgdesc="Modern list library for Emacs"
url="https://github.com/magnars/dash.el"
arch="noarch"
license="GPL-3.0-or-later"
depends="cmd:emacs"
makedepends="emacs-nox"
source="https://github.com/magnars/dash.el/archive/$pkgver/emacs-dash-$pkgver.tar.gz"
builddir="$srcdir/dash.el-$pkgver"
build() {
emacs -batch -q -no-site-file -L . \
-eval '(setq byte-compile-error-on-warn t)' \
-f batch-byte-compile \
dash.el
}
check() {
emacs -batch -q -no-site-file -L . \
-l dev/examples -f ert-run-tests-batch-and-exit
}
package() {
install -Dvm644 dash.el dash.elc \
-t "$pkgdir"/usr/share/emacs/site-lisp/
cd "$pkgdir"/usr/share/emacs/site-lisp
emacs -batch -q -no-site-file \
-eval "(loaddefs-generate \".\" \"$_pkgreal-loaddefs.el\")"
}
sha512sums="
e9a34127907afa477f886e73cc3fe8eaeefbd2248faf7a7bf5e2220d8ffc864d3bccb5621f594df717e94538cd42773cd61e5c793e0a87089b5096f4ba6dd938 emacs-dash-2.20.0.tar.gz
"