summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6d8af96422e..f288a3b84fa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,9 +11,13 @@ makedepends=('unzip')
license=('GPL')
source=("${url}/archive/release-${pkgver}.tar.gz"
"${url}/files/2046240/maplev-built.zip")
+_source_git=("git+https://github.com/JoeRiel/maplev.git#tag=release-${pkgver}"
+ "${url}/files/2046240/maplev-built.zip")
noextract=('maplev-built.zip')
sha256sums=('8dd16724c65a34293516fa498068edd609c4a13c0826763019327d8ed5f4f2ad'
'1ef3264c6b33d846efccca6f4a807e821275f8b054857da33e1d06f32032aacb')
+_sha256sums_git=('SKIP'
+ '1ef3264c6b33d846efccca6f4a807e821275f8b054857da33e1d06f32032aacb')
prepare() {
cd "${srcdir}/maplev-release-${pkgver}/doc"
@@ -36,3 +40,24 @@ package() {
INFO-DIR=${pkgdir}/usr/share/info \
TOOLBOX-DIR=${pkgdir}/usr/share/emacs/site-lisp/maple/toolbox
}
+
+_prepare_git() {
+ cd "${srcdir}/maplev/doc"
+ ./MakeVersion version.texi ${pkgver}
+
+ cd "${srcdir}/maplev"
+ unzip -o "${srcdir}/maplev-built.zip"
+ sed -i -e s/ginstall-info/install-info/ Makefile
+
+ # avoid rebuilding files from maplev-built.zip
+ touch maplev.mla doc/maplev.{html,info,pdf}
+}
+
+_package_git() {
+ cd "${srcdir}/maplev"
+ make install \
+ RELEASE=${pkgver} \
+ LISP-DIR=${pkgdir}/usr/share/emacs/site-lisp/maple \
+ INFO-DIR=${pkgdir}/usr/share/info \
+ TOOLBOX-DIR=${pkgdir}/usr/share/emacs/site-lisp/maple/toolbox
+}