blob: 949ee69ab8250fd9c6f36f145a7fb6a26909aba9 (
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
|
# Maintainer Can Celasun <can[at]dcc[dot]im>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Mathias Burén (fackamato) <mathias.buren@gmail.com>
pkgname=unigine-tropics
_pkgname=Unigine_Tropics
pkgver=1.3
pkgrel=6
pkgdesc="Demonstration and benchmarking of the Unigine 3D engine"
arch=('i686' 'x86_64')
url="http://unigine.com/"
license=('custom')
md5sums=('73729f5ccde2bcf991ecff10feb6dbdf'
'322eea429002108ec286be641c5b9549')
[ `uname -m` = 'i686' ] &&
depends=('gcc-libs' 'libxrandr' 'libgl' 'openal' 'libxinerama')
[ `uname -m` = 'x86_64' ] &&
depends=('lib32-gcc-libs' 'lib32-libxrandr' 'lib32-libgl' 'lib32-openal' 'lib32-libxinerama')
source=(https://assets.unigine.com/d/${_pkgname}-${pkgver}.run
LICENSE)
build() {
cd "${srcdir}"
sh ${_pkgname}-$pkgver.run
}
package() {
cd "${srcdir}"
install -m755 -d "${pkgdir}/opt/${pkgname}"
cp -r tropics/* "${pkgdir}/opt/${pkgname}/"
for _file in "${pkgdir}/opt/${pkgname}/"*.sh; do
sed -i "s_\./bin_/opt/${pkgname}/bin_" $_file
install -m755 -D "${_file}" "${pkgdir}/usr/bin/${pkgname}_${_file/*\//}"
rm -f "${_file}"
done
find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} +
find "${pkgdir}/opt/${pkgname}" -type f -exec chmod 644 {} +
find "${pkgdir}/opt/${pkgname}" -name Tropics -exec chmod 755 {} +
install -m644 -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|