summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2020-08-11 19:52:14 +0200
committerEmmanuel Gil Peyrot2020-08-11 19:52:14 +0200
commit904d8e412e94ce56e1093f053f993e41e6ba3e7b (patch)
tree9db42320de2ac8f4620aee6afb949fe7ad891340
downloadaur-904d8e412e94ce56e1093f053f993e41e6ba3e7b.tar.gz
Hello world!
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD33
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a93414a4c7b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = glfw2to3-git
+ pkgdesc = Porting library to make GLFW 2.x games run on top of GLFW 3.x
+ pkgver = 2.7.10
+ pkgrel = 1
+ url = https://www.glfw.org/
+ arch = x86_64
+ license = ZLIB
+ makedepends = git
+ makedepends = meson
+ depends = glfw
+ provides = glfw2to3
+ provides = glfw2
+ conflicts = glfw2to3
+ conflicts = glfw2
+ source = git+https://github.com/linkmauve/glfw2to3
+ sha256sums = SKIP
+
+pkgname = glfw2to3-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cd19442bcb1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
+
+pkgname=glfw2to3-git
+pkgver=2.7.10
+pkgrel=1
+pkgdesc="Porting library to make GLFW 2.x games run on top of GLFW 3.x"
+arch=('x86_64')
+url="https://www.glfw.org/"
+license=('ZLIB')
+depends=('glfw')
+makedepends=('git' 'meson')
+provides=('glfw2to3' 'glfw2=2.7.10')
+conflicts=('glfw2to3' 'glfw2')
+source=("git+https://github.com/linkmauve/glfw2to3")
+sha256sums=('SKIP')
+
+prepare() {
+ cd glfw2to3
+}
+
+build() {
+ cd glfw2to3
+ arch-meson build
+ ninja -C build
+}
+
+package() {
+ cd glfw2to3
+ DESTDIR="$pkgdir"/ ninja -C build install
+
+ # This would conflict with glfw3.
+ rm "$pkgdir"/usr/lib/libglfw.so
+}