summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2015-07-11 00:44:38 +0100
committerEmmanuel Gil Peyrot2015-07-11 00:44:38 +0100
commit19f9bf2610199764cb330c4c8c0be3c5044b156b (patch)
treec377cfb10a4de1cd73d62f0c3d84f05174650102 /PKGBUILD
parent7bdd7bf435188f7ea953ef2da741b107e74a8761 (diff)
downloadaur-19f9bf2610199764cb330c4c8c0be3c5044b156b.tar.gz
Split this package into an X11 and a Wayland versions.
Also, specify the correct arch, add two missing dependencies on X11, fix the spelling of “optdepends”, and add a provides field so that dependencies don’t miss it. And general cleanup.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD75
1 files changed, 48 insertions, 27 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 873933784b6..f0075aa92c6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,43 +1,64 @@
# Contributor: Axper Jan <483ken _at_ gmail _dot_ com
# Contributor: Daniel Kirchner <ekpyron at lavabit dot com>
+# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
# Maintainer: Ricardo Vieira <ricardo.vieira@tecnico.ulisboa.pt>
-_pkgname=glfw
-pkgname=glfw3-git
-pkgver=3.1.1.r87.g08b3af4
+
+_pkgbase=glfw
+pkgbase="$_pkgbase-git"
+pkgname=("$_pkgbase-x11-git" "$_pkgbase-wayland-git")
+pkgver=3.1.1.r119.g0f3b69c
pkgrel=1
-pkgdesc="A free, open source, portable framework for OpenGL application development. (git version)"
-arch=('any')
+arch=('i686' 'x86_64' 'armv7h')
url="http://www.glfw.org/"
license=('custom:ZLIB')
-depends=('libxi' 'libgl' 'libxrandr')
-optionaldepends=('doxygen: build glfw html documentation')
-makedepends=('cmake' 'git')
-conflicts=('glfw')
-source=("$_pkgname"::'git+https://github.com/glfw/glfw.git#branch=master')
+optdepends=('doxygen: build glfw html documentation')
+makedepends=('cmake' 'git' 'libxi' 'libxrandr' 'libxinerama' 'libxcursor' 'wayland' 'libxkbcommon' 'libgl')
+conflicts=("$_pkgbase")
+provides=("$_pkgbase=3.2")
+source=("$_pkgbase::git+https://github.com/glfw/glfw")
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/$_pkgname"
- git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+ cd "$srcdir/$_pkgbase"
+ git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
-build() {
- cd "$srcdir/$_pkgname"
- cmake \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DBUILD_SHARED_LIBS=ON \
- -DGLFW_BUILD_EXAMPLES=OFF \
- -DGLFW_BUILD_TESTS=OFF \
- -DGLFW_USE_WAYLAND=OFF \
- -Wno-dev \
- .
- make
+prepare() {
+ mkdir -p "$srcdir/$_pkgbase/build-x11"
+ mkdir -p "$srcdir/$_pkgbase/build-wayland"
}
-package() {
- cd "$srcdir/$_pkgname"
- make DESTDIR="$pkgdir" install
- install -D -m644 COPYING.txt "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
+package_glfw-x11-git() {
+ depends=('libxi' 'libxrandr' 'libxinerama' 'libxcursor' 'libgl')
+ pkgdesc="A free, open source, portable framework for OpenGL application development. (git, X11 version)"
+
+ cd "$srcdir/$_pkgbase/build-x11"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=ON \
+ -DGLFW_BUILD_EXAMPLES=OFF \
+ -DGLFW_BUILD_TESTS=OFF \
+ -Wno-dev \
+ ..
+ make DESTDIR="$pkgdir" install
+ install -D -m644 ../COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+package_glfw-wayland-git() {
+ depends=('wayland' 'libxkbcommon' 'libgl')
+ pkgdesc="A free, open source, portable framework for OpenGL application development. (git, Wayland version)"
+
+ cd "$srcdir/$_pkgbase/build-wayland"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=ON \
+ -DGLFW_BUILD_EXAMPLES=OFF \
+ -DGLFW_BUILD_TESTS=OFF \
+ -DGLFW_USE_WAYLAND=ON \
+ -Wno-dev \
+ ..
+ make DESTDIR="$pkgdir" install
+ install -D -m644 ../COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
# vim:set ts=2 sw=2 et: