summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d770f1d154f0afed94242186e4f1b93cda1fedeb (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
42
43
44
45
# Maintainer: Simon Hauser <Simon-Hauser@outlook.de>

pkgname=premake-git
pkgver=5.0.0.beta1.r225.gdc8dc0a4
pkgrel=1
pkgdesc='Simple build configuration and project generation tool using Lua'
arch=(i686 x86_64)
url='http://industriousone.com/premake'
license=(BSD)
depends=(glibc openssl)
makedepends=(git)
provides=(premake)
conflicts=(premake)
source=(git+https://github.com/premake/premake-core)
md5sums=('SKIP')

pkgver() {
  cd premake-core
  git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//'
}

prepare() {
  cd premake-core
  git submodule init
  git submodule update
}

build() {
  cd premake-core
  make -f Bootstrap.mak linux
  bin/release/premake5 gmake
  make config=release
}

check(){
  cd premake-core
  ./bin/release/premake5 test
}

package() {
  cd premake-core
  install -Dm755 bin/release/premake5 "$pkgdir"/usr/bin/premake5
  install -Dm755 packages/debian/premake.1 "$pkgdir"/usr/share/man/man1/premake5.1
  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}