summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f741db2165a2245acf4bb2a1a8fa69be544fae8b (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
# Maintainer: SebRmv <sbriais at-symbol free dot fr>
pkgname=omake-git
pkgver=r328.988b2a7
pkgrel=2
pkgdesc="A build system designed for scalability and portability"
arch=('i686' 'x86_64')
url=http://projects.camlcity.org/projects/omake.html
license=('GPL')
depends=('ncurses' 'readline')
makedepends=('git' 'gcc' 'ocaml')
provides=('omake')
conflicts=('omake')
source=('omake::git+https://github.com/ocaml-omake/omake.git')
sha1sums=(SKIP)

_gitname='omake'

build() {
  msg "Starting build..."

  cd "$srcdir"
  rm -rf "$_gitname-build"
  cp -r "$_gitname" "$_gitname-build"

  cd "$_gitname-build"

  ./configure --prefix /usr && make
}

package() {
  cd "$srcdir/$_gitname-build"
  mkdir -p $pkgdir/opt/omake
  make INSTALL_ROOT="$pkgdir" install
}

pkgver() {
  cd "$srcdir/$_gitname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}