1 # Maintainer: Baptiste Jonglez <zerstorer at free dot fr>
2 # Contributor: RetroX <classixretrox@gmail.com>
5 pkgname=lib32-${_pkgbasename}-git
8 pkgdesc='A simple, fast, cross-platform, and object-oriented multimedia API (32-bit))'
10 url='http://www.sfml-dev.org/'
12 depends=("$_pkgbasename" 'lib32-libsndfile' 'lib32-libxrandr' 'lib32-libjpeg' 'lib32-openal' 'lib32-glew' 'lib32-freetype2')
13 makedepends=('gcc-multilib' 'git' 'lib32-mesa' 'cmake')
16 _gitroot='https://github.com/LaurentGomila/SFML.git'
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
40 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
42 mkdir build && cd build
43 cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
45 -DLIB_INSTALL_DIR=/usr/lib32
50 cd "$srcdir/$_gitname-build/build"
51 make DESTDIR="$pkgdir/" install
53 # those are already included in the sfml package
54 rm -rf "$pkgdir/usr/share" "$pkgdir/usr/include"