blob: aaf13d6db39e62880f648e2eb932050af06c47c9 (
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
|
# Maintainer:Alexandr Parkhomenko <it@52tour.ru>
# Christian Stewart
_author=paralin
_pkgname=soil
pkgname=${_pkgname}-git
pkgver=1
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"
"https://aur.archlinux.org/cgit/aur.git/plain/CMake.patch?h=$_pkgname"
)
sha256sums=('SKIP' 'SKIP')
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
}
|