summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d5ec6f403b93499c3da5d8599a70a6faebccb1e (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: Eric Bailey <nerflad@gmail.com>

pkgname=nyan-lang-git
pkgver=r124.92657c7
pkgrel=1
pkgdesc="A data description language designed for openage"
arch=('i686' 'x86_64')
url="https://github.com/SFTtech/nyan"
license=('LGPL3')
depends=('gcc-libs>=7.0.0')
makedepends=('cmake' 'git')
provides=('nyan-lang')
conflicts=('nyan-lang')
source=("$pkgname::git+https://github.com/SFTtech/nyan")
md5sums=('SKIP')

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

prepare() {
    cd "$srcdir/$pkgname"
    mkdir -p build
}

build() {
    cd "$srcdir/$pkgname/build"
    cmake -DCMAKE_INSTALL_PREFIX=/usr \
          -DCMAKE_INSTALL_LIBDIR=/usr/lib \
          -DCMAKE_BUILD_TYPE=Release ..
    make
}

package() {
    cd "$srcdir/$pkgname/build"
    make DESTDIR="$pkgdir/" install
}