summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..6407f0c1c868
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Andrew Whatson <whatson@gmail.com>
+_pkgname=emacsy
+_pkgbase=guile-${_pkgname}
+pkgname=${_pkgbase}-git
+pkgver=0.4.1.r25.g78c33f2
+pkgrel=1
+pkgdesc='An embeddable Emacs-like library using GNU Guile'
+arch=('i686' 'x86_64')
+license=('GPL3')
+depends=('guile' 'guile-lib')
+provides=(${_pkgbase})
+conflicts=(${_pkgbase})
+makedepends=('git')
+url="https://savannah.nongnu.org/projects/emacsy"
+source=("git+https://git.savannah.nongnu.org/git/emacsy.git#branch=wip")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${_pkgname}
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd ${_pkgname}
+ ./autogen.sh
+}
+
+build() {
+ cd ${_pkgname}
+ ./configure --prefix=/usr --without-examples
+ make
+}
+
+package() {
+ cd ${_pkgname}
+ make DESTDIR="${pkgdir}" install
+ rm -rfv "${pkgdir}/usr/bin" "${pkgdir}/usr/etc"
+}