Skip to content

Instantly share code, notes, and snippets.

@lubosz
Created June 4, 2016 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lubosz/93b023196378cab95ccdd7000c1b38b3 to your computer and use it in GitHub Desktop.
Save lubosz/93b023196378cab95ccdd7000c1b38b3 to your computer and use it in GitHub Desktop.
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