summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cbe23672f80678d06f8d57b889be7baa411f7229 (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
39
40
41
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=slang-git
pkgver=2.3.2.r15.g68dd5e9
pkgrel=1
pkgdesc="Interpreted language embedded into several applicatons (from git)"
arch=('x86_64')
url="https://www.jedsoft.org/slang/"
license=('GPL')
depends=('pcre')
makedepends=('git')
conflicts=('slang')
provides=('slang')
backup=('etc/slsh.rc')
options=('!makeflags')
source=(git://git.jedsoft.org/git/slang.git)
sha1sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --always --long | sed 's+-+.r+' | tr - . |cut -c2-
}

build() {
  cd ${pkgname%-git}
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

check() {
  cd ${pkgname%-git}
  make check || true
}

package() {
  cd ${pkgname%-git}
  make DESTDIR="${pkgdir}" install-all
}