[arch-commits] Commit in glfw/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Thu Aug 7 12:57:30 UTC 2014
Date: Thursday, August 7, 2014 @ 14:57:29
Author: svenstaro
Revision: 116980
upgpkg: glfw 3.0.4-2
Fix FS#41444
Modified:
glfw/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-08-07 12:53:11 UTC (rev 116979)
+++ PKGBUILD 2014-08-07 12:57:29 UTC (rev 116980)
@@ -6,10 +6,9 @@
# Contributor: Mihai Militaru <mihai.militaru at ephemeros.org>
# Contributor: SpepS <dreamspepser at yahoo dot it>
-pkgname=glfw
+pkgname=('glfw' 'glfw-doc')
pkgver=3.0.4
-pkgrel=1
-pkgdesc="A free, open source, portable framework for OpenGL application development"
+pkgrel=2
arch=('i686' 'x86_64')
url="http://www.glfw.org/"
license=('custom:ZLIB')
@@ -27,10 +26,11 @@
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON
- make
+ make docs
}
-package() {
+package_glfw() {
+ pkgdesc="A free, open source, portable framework for OpenGL application development"
cd "$srcdir/$pkgname-$pkgver"
cd build
@@ -39,3 +39,9 @@
cd ..
install -Dm644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
+
+package_glfw-doc() {
+ pkgdesc="Set of HTML documentation for GLFW"
+ mkdir -p "${pkgdir}/usr/share/doc/glfw/"
+ cp -r "${srcdir}/glfw-${pkgver}/docs/html" "${pkgdir}/usr/share/doc/glfw"
+}
More information about the arch-commits
mailing list