summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorluigoalma2020-05-06 02:34:08 +0100
committerluigoalma2020-05-06 02:35:41 +0100
commit708bd5b16de3ef6f3f36d972fa8a6b742562722e (patch)
tree99c0e00668ab330c3d494fd9e0d78edc60ac2945
downloadaur-708bd5b16de3ef6f3f36d972fa8a6b742562722e.tar.gz
lib32-gwfl
Taken from Arch's glfw and edited for lib32
-rw-r--r--.SRCINFO39
-rw-r--r--PKGBUILD89
2 files changed, 128 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..31758fed054
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,39 @@
+pkgbase = lib32-glfw
+ pkgver = 3.3.2
+ pkgrel = 1
+ url = http://www.glfw.org/
+ arch = x86_64
+ license = custom:ZLIB
+ makedepends = lib32-mesa
+ makedepends = cmake
+ makedepends = vulkan-headers
+ makedepends = lib32-vulkan-icd-loader
+ makedepends = extra-cmake-modules
+ makedepends = wayland-protocols
+ makedepends = lib32-libxi
+ makedepends = lib32-libxrandr
+ makedepends = lib32-libxcursor
+ makedepends = lib32-libxkbcommon
+ makedepends = lib32-libxinerama
+ source = glfw-3.3.2.tar.gz::https://github.com/glfw/glfw/archive/3.3.2.tar.gz
+ sha512sums = f5af749d33b5b900ccf07988ad0bf51bd766a18e4cf2bc2a76020c88e98a2528ff1b965224184fe0d290cfe34b1af1e6f633600660d81194fe354078e2f35c56
+
+pkgname = lib32-glfw-x11
+ pkgdesc = A free, open source, portable framework for graphical application development (x11) (32-bit)
+ depends = lib32-libxi
+ depends = lib32-libxrandr
+ depends = lib32-libxinerama
+ depends = lib32-libxcursor
+ depends = lib32-libgl
+ provides = lib32-glfw
+ conflicts = lib32-glfw
+ replaces = lib32-glfw
+
+pkgname = lib32-glfw-wayland
+ pkgdesc = A free, open source, portable framework for graphical application development (wayland) (32-bit)
+ depends = lib32-wayland
+ depends = lib32-libxkbcommon
+ depends = lib32-libgl
+ provides = lib32-glfw
+ conflicts = lib32-glfw
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d6ac6ff99a6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,89 @@
+# Maintainer: Luis Marques <luigoalma@gmail.com>
+# Taken and modified glfw package for lib32, original maintainers and contributors:
+# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
+# Contributor: philefou <tuxication AT gmail DOT com>
+# Contributor: lindquist <tomas@famolsen.dk>
+# Contributor: Christoph Siegenthaler <csi@gmx.ch>
+# Contributor: Mihai Militaru <mihai.militaru@ephemeros.org>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+
+pkgbase=lib32-glfw
+pkgname=('lib32-glfw-x11' 'lib32-glfw-wayland')
+pkgver=3.3.2
+pkgrel=1
+arch=('x86_64')
+url="http://www.glfw.org/"
+license=('custom:ZLIB')
+makedepends=('lib32-mesa' 'cmake' 'vulkan-headers' 'lib32-vulkan-icd-loader'
+ 'extra-cmake-modules' 'wayland-protocols' 'lib32-libxi' 'lib32-libxrandr'
+ 'lib32-libxcursor' 'lib32-libxkbcommon' 'lib32-libxinerama')
+source=("glfw-${pkgver}.tar.gz"::"https://github.com/glfw/glfw/archive/${pkgver}.tar.gz")
+sha512sums=('f5af749d33b5b900ccf07988ad0bf51bd766a18e4cf2bc2a76020c88e98a2528ff1b965224184fe0d290cfe34b1af1e6f633600660d81194fe354078e2f35c56')
+
+prepare() {
+ cd "$srcdir/glfw-$pkgver"
+ mkdir build-x11 build-wayland
+}
+
+build() {
+ export CC='gcc -m32'
+ export CXX='g++ -m32'
+ export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+
+ cd "$srcdir/glfw-$pkgver/build-x11"
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib32 \
+ -DBUILD_SHARED_LIBS=ON \
+ -DGLFW_BUILD_DOCS=OFF \
+ -DGLFW_BUILD_EXAMPLES=OFF \
+ -DGLFW_BUILD_TESTS=OFF
+
+ cd ../build-wayland
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib32 \
+ -DBUILD_SHARED_LIBS=ON \
+ -DGLFW_BUILD_DOCS=OFF \
+ -DGLFW_BUILD_EXAMPLES=OFF \
+ -DGLFW_BUILD_TESTS=OFF \
+ -DGLFW_USE_WAYLAND=ON
+}
+
+package_lib32-glfw-x11() {
+ pkgdesc="A free, open source, portable framework for graphical application development (x11) (32-bit)"
+ depends=('lib32-libxi' 'lib32-libxrandr' 'lib32-libxinerama' 'lib32-libxcursor' 'lib32-libgl')
+ replaces=('lib32-glfw')
+ conflicts=('lib32-glfw')
+ provides=('lib32-glfw')
+
+ cd "$srcdir/glfw-$pkgver"/build-x11
+
+ make DESTDIR=$pkgdir install
+
+ cd ..
+
+ rm -rf "${pkgdir}"/usr/{bin,include,share}
+
+ install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+}
+
+package_lib32-glfw-wayland() {
+ pkgdesc="A free, open source, portable framework for graphical application development (wayland) (32-bit)"
+ depends=('lib32-wayland' 'lib32-libxkbcommon' 'lib32-libgl')
+ conflicts=('lib32-glfw')
+ provides=('lib32-glfw')
+
+ cd "$srcdir/glfw-$pkgver"/build-wayland
+
+ make DESTDIR=$pkgdir install
+
+ cd ..
+
+ rm -rf "${pkgdir}"/usr/{bin,include,share}
+
+ install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+}
+