summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4332b1d57c1c844dd364769c083fca645f6c8713 (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
46
47
48
49
# Maintainer: yjun <jerrysteve1101 at gmail dot com>

pkgname=lxrad-git
_gitname=${pkgname%-git}
pkgver=v0.8.r93.g1d5ba7a
pkgrel=1
pkgdesc="linux x11 rad tools"
arch=('x86_64')
url='https://github.com/lcgamboa/lxrad'
license=('GPL2')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
depends=('wxgtk2'
         'openal')
makedepends=('doxygen'
             'git')
source=("git+https://github.com/lcgamboa/lxrad")
sha256sums=('SKIP')

pkgver() {
  cd "$_gitname"

  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$_gitname"

  sed -i '31s|#include<lxrad/lxrad.h>|#include "../include/lxrad.h"|' layout/layout2.h
}

build() {
  cd "$_gitname"

  autoupdate
  autoreconf --install

  ./configure --prefix=/usr
  make
}

package() {
  cd "$_gitname"

  install -dm755 ${pkgdir}/usr/lib \
                ${pkgdir}/usr/bin

  make install prefix="$pkgdir/usr"
}