summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6407f0c1c868aab48f46659a82e600909bb0436d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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"
}