Skip to content

Instantly share code, notes, and snippets.

@lubosz lubosz/PKGBUILD
Created Jun 4, 2016

Embed
What would you like to do?
glxosd-git
# Maintainer: Maxime Poulin <maxpoulin64@gmail.com>
# Contributor: xpander <xpander0@gmail.com>
pkgname=glxosd-git
_gitname=GLXOSD
pkgver=r192.97d8a7d
pkgrel=1
pkgdesc="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' 'libxnvctrl')
provides=('glxosd')
conflicts=('glxosd')
replaces=('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/src/freetype-gl-glxosd/freetype-gl"
git submodule init; git submodule update
}
build() {
cd "$srcdir/$_gitname"
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.