summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9b7113ca6897bdbce32d5edcfb9d3dc3bf1e84d (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
# Maintainer: Thaodan <theodorstormgrade@gmai.com>
_pkgname=shpp
pkgname=$_pkgname-git
pkgver=1.9.1.1.r10.gccee40c
pkgrel=1
pkgdesc="preprocessor written for posix shell"
url="https://github.com/Thaodan/shpp"
arch=('any')
license=('GPL2')
depends=('sh' 'coreutils' 'sed' 'bc')
provides=($_pkgname)
source=("${pkgname}-${pkgver}.tar.gz")
conflicts=('sh-make-tools')
makedepends=('git' 'emacs')
source=(git+https://github.com/Thaodan/$_pkgname)
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  ./tools/git_revgen
}

build() {
  cd $srcdir/$_pkgname
  make PREFIX=/usr
}	
check() {
  cd $srcdir/$_pkgname/src
  make -C tests
}

package() {
  cd $srcdir/$_pkgname
  make PREFIX=$pkgdir/usr install
}