Package Details: gli-git 0.8.2.0.r70.g559cbe1e-1

Git Clone URL: https://aur.archlinux.org/gli-git.git (read-only, click to copy)
Package Base: gli-git
Description: OpenGL Image (GLI) is a header only C++ image library for graphics software
Upstream URL: http://gli.g-truc.net
Licenses: MIT
Conflicts: gli
Provides: gli
Submitter: Ryp
Maintainer: Ryp
Last Packager: Ryp
Votes: 0
Popularity: 0.000000
First Submitted: 2015-09-17 21:29
Last Updated: 2020-06-18 09:39

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

Arthapz commented on 2020-06-21 18:35

To be able to import gli like glm, a simple fix is

# Maintainer: Thibault 'Ryp' Schueller  <ryp.sqrt@gmail.com>

_gitname=gli
pkgname=gli-git
pkgver=0.8.2.0.r70.g559cbe1e
pkgrel=1
pkgdesc="OpenGL Image (GLI) is a header only C++ image library for graphics software"
arch=('any')
license=('MIT')
url="http://gli.g-truc.net"
makedepends=('git' 'cmake')
conflicts=('gli')
provides=('gli')
depends=('glm>=0.9.7.0')
source=('git+https://github.com/g-truc/gli.git')
sha512sums=('SKIP')

pkgver() {
    cd "$srcdir/$_gitname"
#     git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
#     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    git describe --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
    cd "$srcdir/$_gitname"

    mkdir -p  build
    cd build

    cmake .. \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib
    make DESTDIR=$pkgdir install

    cd ..

    mkdir -p $pkgdir/usr/share/doc
    cp -r doc $pkgdir/usr/share/doc/gli

    find "$pkgdir" -type f -exec chmod 644 {} \;
    find "$pkgdir" -type d -exec chmod 755 {} \;
}