summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 152eadd7223a6dcf747ef31d56caae113e3ce6c1 (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
# Maintainer: dario loi <dario13 loi at gmail dot com>
pkgname=staplegl-git
pkgver=v0.10.0
pkgrel=1
pkgdesc="Header-only C++20 OpenGL wrapper"
arch=('any')
url="https://github.com/dario-loi/staplegl"
license=('MIT')
source=("https://github.com/dario-loi/staplegl.git")
md5sums=('SKIP')
optdepends=('glfw: to compile the examples'
            'tbb: for the multithreading in the batches example'
            'cmake: to compile the examples'
            'doxygen: to generate the documentation locally')


package() {
    cd "$srcdir"
    git clone --branch=${pkgver} https://github.com/dario-loi/staplegl.git
    cd "staplegl"
    
    # Copy the include files and modules to the appropriate destination
    install -d "${pkgdir}/usr/include/"
    install -d "${pkgdir}/usr/include/modules"
    cp -r "include/"* "${pkgdir}/usr/include/${pkgname}"
    cp -r "include/modules/"* "${pkgdir}/usr/include/${pkgname}/modules/"
    
    # Install the LICENSE file
    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}