blob: 5693dd83d3338646f878f02dc5629f0560ac628e (
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
54
55
56
57
58
59
|
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
pkgname=awesomebump-git
pkgver=5.1.1.r2.gf9fad16
pkgrel=1
pkgdesc="A free program designed to generate normal, height, specular or ambient occlusion textures from a single image"
arch=('i686' 'x86_64')
url="https://github.com/kmkolasinski/AwesomeBump"
license=('LGPL3')
depends=('qt5-base' 'qt5-location' 'qt5-script' 'qt5-svg')
conflicts=('awesomebump')
makedepends=('git' 'wget' 'unzip' 'mesa-demos')
source=("${pkgname}::git+${url}.git#branch=Release"
"awesomebump.log.file.moved.to.tmp.patch"
"awesomeBump.sh"
"awesomebump.desktop")
md5sums=('SKIP'
'ef914dfd9c801fc0e74ebc3d4ced7dca'
'9371d46df5722a0667435209a1748755'
'8ec11bf7486fa4a3c0291efe86d79696')
vergte() {
[ "$2" = "`echo -e \"$1\n$2\" | sort -V | head -n1`" ]
}
pkgver() {
cd ${srcdir}/${pkgname}
git describe --long --tags | sed 's/^Linuxv//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd ${srcdir}/${pkgname}
patch -Np1 -i ../awesomebump.log.file.moved.to.tmp.patch
glver=$(LIBGL_ALWAYS_INDIRECT=1 glxinfo |sed -n '/OpenGL version string:/s/^.*: \([0-9.]*\).*$/\1/p'||true)
#glver=3.3 # uncomment for headles system to build opengl330 version
if (vergte $glver 3.3) ; then
sed -i 's:qmake:qmake "CONFIG+=gl330":' unixBuildScript.sh
fi
}
build() {
cd ${srcdir}/${pkgname}
#sed -i 's:MY_QT_PATH=/Qt/5.6:MY_QT_PATH=/usr/bin:' unixBuildScript.sh
sed -i 's:MY_QT_PATH=.*:MY_QT_PATH=/usr/bin:' unixBuildScript.sh
sed -i "s: make: make ${MAKEFLAGS}:" unixBuildScript.sh
./unixBuildScript.sh yes
}
package() {
cd ${srcdir}
install -dm755 "${pkgdir}/opt"
cp --preserve=mode -r ${pkgname}/Bin "${pkgdir}/opt/awesomebump"
install -Dm644 ${pkgname}/Sources/resources/icons/icon.png "${pkgdir}/usr/share/pixmaps/awesomebump.png"
install -Dm644 "awesomebump.desktop" "${pkgdir}/usr/share/applications/awesomebump.desktop"
install -Dm755 "awesomeBump.sh" "${pkgdir}/usr/bin/awesomeBump"
}
|