aports/testing/emacs-hydra/APKBUILD
Celeste 40ea6c48d7 */*: add maintainer variable for aports i maintain
leaving the Maintainer comment there for better visual cues, syntax highlighting, and easy conversion to a Contributor comment

since Contributor comments are not being removed, just treat my Maintainer comments like Contributor ones, as a normal comment
2024-10-16 16:20:45 +00:00

46 lines
1.2 KiB
Text

# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=emacs-hydra
pkgver=0.15.0_git20220910
_gitrev=317e1de33086637579a7aeb60f77ed0405bf359b
pkgrel=0
_pkgreal=hydra
pkgdesc="Make Emacs bindings that stick around"
url="https://github.com/abo-abo/hydra"
arch="noarch"
license="GPL-3.0-or-later"
depends="cmd:emacs"
makedepends="emacs-nox"
source="https://github.com/abo-abo/hydra/archive/$_gitrev/emacs-hydra-$_gitrev.tar.gz"
builddir="$srcdir/$_pkgreal-$_gitrev"
prepare() {
default_prepare
mkdir -v test
mv -v hydra-test.el test/
}
build() {
emacs -batch -q -no-site-file -L . \
-f batch-byte-compile \
./*.el
}
check() {
emacs -batch -q -no-site-file -L . -L test \
-l hydra-test -f ert-run-tests-batch-and-exit
}
package() {
install -Dvm644 ./*.el ./*.elc \
-t "$pkgdir"/usr/share/emacs/site-lisp/$_pkgreal/
cd "$pkgdir"/usr/share/emacs/site-lisp/$_pkgreal
emacs -batch -q -no-site-file \
-eval "(loaddefs-generate \".\" \"$_pkgreal-loaddefs.el\")"
}
sha512sums="
18323e2b39ea99ee411a689f63c92827919ef66aa49e13bc6a6393af5b29eac81d146397d2ce12a55c9e533f562472e3931a6c4883e183bcb162d3e2d38798cb emacs-hydra-317e1de33086637579a7aeb60f77ed0405bf359b.tar.gz
"