blob: c2368ea03217a7768f2c374a6ac9baeb3d6d3352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: PhotonX <photon89 at googlemail dot com>
# Contributor: ice-man <icemanf@gmail.com>
# Contributor: dopsi
pkgname=glui
pkgver=2.37
pkgrel=2
pkgdesc="A GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications"
makedepends=('freeglut' 'glu')
source=("https://github.com/libglui/glui/archive/refs/tags/${pkgver}.tar.gz" 'makefile.patch')
url="http://glui.sourceforge.net/"
arch=('i686' 'x86_64')
md5sums=('08113ebdaeee91ca876b5ecb4963fac8'
'ad14ce00704ceeb5183d354fd3b2d5c8')
license=('GPL')
options=(staticlibs)
build() {
cd $srcdir/${pkgname}-${pkgver}/
patch -p0 < $srcdir/makefile.patch
make setup || exit 0
make lib/libglui.a || exit 0
make lib/libglui.so.2 || exit 0
}
package() {
cd $srcdir/${pkgname}-${pkgver}
mkdir -p $pkgdir/usr/lib/
mkdir -p $pkgdir/usr/include/
mkdir -p $pkgdir/usr/include/GL/
mkdir -p $pkgdir/usr/share/doc/glui-${pkgver}/
cp lib/libglui.a $pkgdir/usr/lib/
cp lib/libglui.so.2 $pkgdir/usr/lib/
cp include/GL/glui.h $pkgdir/usr/include/GL/
cp doc/glui_manual.pdf $pkgdir/usr/share/doc/glui-${pkgver}/
}
|