summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b966a4403c7c5578929f93403017973ceae0e067 (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
50
51
52
53
# Maintainer:Alexandr Parkhomenko <it@52tour.ru>

# Christian Stewart
_author=paralin
_pkgname=soil
pkgname=${_pkgname}-git
pkgver=1.16
pkgrel=1
pkgdesc='SOIL is a tiny C library used primarily for uploading textures into OpenGL. It is based on stb_image version 1.16'
arch=(
  'x86_64'
)

url='https://github.com/'
license=('MIT')
depends=()
makedepends=('git' 'cmake')
source=("git://github.com/$_author/$_pkgname"
        "CMake.patch::https://aur.archlinux.org/cgit/aur.git/plain/CMake.patch?h=$pkgname"
       )
sha256sums=('SKIP' 'SKIP')
provide=('soil')
conflicts=('soil')

prepare() {
  cd "$srcdir/$_pkgname"
  patch --forward --strip=1 --input="$startdir/CMake.patch"
}

#pkgver () {
#  cd "$srcdir/$_pkgname"
#  git describe --tags --long | sed -r 's/^v//;s/-RC/RC/;s/([^-]*-g)/r\1/;s/-/./g'
#}

build() {
  cd "$startdir"
  if [ ! -d "build/$_pkgname" ]; then
    mkdir -p "build/$_pkgname";
  fi
  cd "build/$_pkgname"
  cmake "$srcdir/$_pkgname"
  make
}

check() {
  cd "$startdir/build/$_pkgname"
#  make test
}

package() {
  cd "$startdir/build/$_pkgname"
  DESTDIR="$pkgdir" make install
}