Skip to content

Instantly share code, notes, and snippets.

/PKGBUILD
Created Jan 25, 2015

Embed
What would you like to do?
PKGBUILD
# Maintainer: Jiaxi Hu <sftrytry AT gmail DOT com>
pkgname=glsl-debugger-git
_pkgname=GLSL-Debugger
pkgver=0.r386.55b007c
pkgrel=1
pkgdesc="GLSL source level debugger. This is the Open Source public release of the project originally known as glslDevil ( http://www.vis.uni-stuttgart.de/glsldevil/ ), by Thomas Klein, Magnus Strengert and Thomas Ertl."
arch=('i686' 'x86_64')
url="https://github.com/XenonofArcticus/GLSL-Debugger"
license=('custom')
depends=()
makedepends=('git')
optdepends=()
provides=()
conflicts=()
#source=('git+https://github.com/XenonofArcticus/GLSL-Debugger.git')
source=("$pkgname"::'git://github.com/XenonofArcticus/GLSL-Debugger.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
# Use the tag of the last commit
#git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $srcdir
rm -rf ${pkgname}_build
cp -r ${pkgname} ${pkgname}_build
cd ${pkgname}_build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd ${srcdir}/${pkgname}_build
#make DESTDIR="$pkgdir" install
#install files manually
#install -d "$pkgdir/usr/lib/"
install -Dm755 "$srcdir/${pkgname}_build/lib/libdlsym.so" "$pkgdir/usr/lib/libdlsym.so"
install -Dm755 "$srcdir/${pkgname}_build/lib/libglslang.so" "$pkgdir/usr/lib/libglslang.so"
install -Dm755 "$srcdir/${pkgname}_build/lib/libglsldebug.so" "$pkgdir/usr/lib/libglsldebug.so"
install -Dm755 "$srcdir/${pkgname}_build/lib/plugins/libglEnd.so" "$pkgdir/usr/lib/plugins/libglEnd.so"
install -Dm755 "$srcdir/${pkgname}_build/bin/glsldb" "$pkgdir/usr/bin/glsldb"
# install license file
install -Dm644 "$srcdir/${pkgname}/LICENSE.TXT" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
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.