blob: 36d7ac20f68a9ce304fd8cd2283ff99ce23fbed9 (
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
|
# Maintainer: Franc[e]sco <lolisamurai@tfwno.gf>
pkgname=glxosd-fix-git
provides=('glxosd-git')
_gitname=GLXOSD
pkgver=r209.dbb44b7
pkgrel=1
pkgdesc="(no nvidia proprietary dep, fix compile errors) An OSD for OpenGL applications running under the X Window System. This allows you to monitor your framerate and hardware temperature in games on Linux!"
arch=('i686' 'x86_64')
url="https://github.com/nickguletskii/GLXOSD"
license=('GPL')
depends=('mesa' 'glu' 'fontconfig' 'freetype2' 'lm_sensors' 'libxext')
makedepends=('cmake' 'gcc' 'git' 'boost')
provides=('glxosd')
conflicts=('glxosd')
source=('git://github.com/nickguletskii/GLXOSD.git')
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_gitname"
git submodule init
git submodule update --recursive
patch --forward --strip=1 --input="${startdir}/glxosd-fix.patch"
}
build() {
cd "$srcdir/GLXOSD"
cmake -DCMAKE_INSTALL_PREFIX=/usr -G "Unix Makefiles"
make all
}
package() {
cd "$srcdir/$_gitname"
make DESTDIR="$pkgdir/" install
if [ -d "$pkgdir/usr/lib64" ]; then
mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib"
fi
sed -i 's+/usr//lib/x86_64-linux-gnu//glxosd/+/usr/lib/glxosd+g' \
"$pkgdir/usr/bin/glxosd"
sed -i 's+/usr//lib/i386-linux-gnu//glxosd+/usr/lib/glxosd+g' \
"$pkgdir/usr/bin/glxosd"
}
|