Created
January 28, 2017 22:28
-
-
Save Phitherek/cb5d7ab05520914e4e37d0ca7ac840ba to your computer and use it in GitHub Desktop.
Working PKGBUILD for lib32-glxosd-git package based on my own upstream fixes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Maxime Poulin <maxpoulin64@gmail.com> | |
# Contributor: xpander <xpander0@gmail.com> | |
pkgname=lib32-glxosd-git | |
_gitname=GLXOSD | |
pkgver=r203.f5a515d | |
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/Phitherek/GLXOSD" | |
license=('GPL') | |
depends=('mesa' 'glu' 'fontconfig' 'freetype2' 'lm_sensors' 'libxext') | |
makedepends=('cmake' 'gcc' 'git' 'boost' 'libxnvctrl') | |
provides=('lib32-glxosd') | |
conflicts=('lib32-glxosd') | |
replaces=('lib32-glxosd') | |
source=('git://github.com/Phitherek/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" | |
git checkout 32bit | |
export CMAKE_C_FLAGS='-m32' | |
export CMAKE_CXX_FLAGS='-m32' | |
export CC='gcc -m32' | |
export CXX='g++ -m32' | |
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' | |
cmake -DLIB_SUFFIX=32 -DCMAKE_INSTALL_PREFIX=/usr -G "Unix Makefiles" | |
make all | |
} | |
package() { | |
cd "$srcdir/$_gitname" | |
git checkout 32bit | |
make DESTDIR="$pkgdir/" install | |
sed -i 's+/usr//lib32/x86_64-linux-gnu//glxosd/+/usr/lib32/glxosd+g' $pkgdir/usr/bin/glxosd32 | |
sed -i 's+/usr//lib32/i386-linux-gnu//glxosd+/usr/lib32/glxosd+g' $pkgdir/usr/bin/glxosd32 | |
mv $pkgdir/usr/lib $pkgdir/usr/lib32 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment