# Maintainer: Natanael Copa setvar pkgname = 'glm' setvar pkgver = '0.9.8.5' setvar pkgrel = '0' setvar pkgdesc = ""C++ mathematics library for graphics programming"" setvar url = ""http://glm.g-truc.net/"" setvar arch = ""all"" setvar license = ""MIT"" setvar depends = """" setvar depends_dev = """" setvar makedepends = ""$depends_dev cmake"" setvar install = """" setvar subpackages = ""$pkgname-dev"" setvar source = ""https://github.com/g-truc/glm/releases/download/$pkgver/glm-$pkgver.zip"" setvar _builddir = ""$srcdir"/glm" proc prepare { local i cd $_builddir for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $_builddir mkdir build cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=lib \ || return 1 make } proc package { cd "$_builddir"/build make install DESTDIR="$pkgdir" } setvar sha512sums = ""8a0213c08722641f4ff419e7d704478f23f901f0332596bdb55282d7f7746258e227bfef5a6a3ee70c0db82f7f089dceeb5131d2ad0dc56d360453c71b46467f glm-0.9.8.5.zip""