summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Goto2017-08-09 22:00:14 +0200
committerPhilip Goto2017-08-09 22:00:14 +0200
commit62b60e72730756c59035735937a66a3c6b5198d7 (patch)
tree63e530ba491a6072bc50df4f8cd3b16216274e10
downloadaur-62b60e72730756c59035735937a66a3c6b5198d7.tar.gz
Add initial version files to build libminigbm
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD33
-rw-r--r--minigbm.patch12
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e5afd336757
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = libminigbm-git
+ pkgdesc = The Chromium OS shell for Linux
+ pkgver = r182.4df286c
+ pkgrel = 1
+ url = https://www.chromium.org/chromium-os
+ arch = x86_64
+ license = GPL
+ provides = libminigbm
+ source = git+https://chromium.googlesource.com/chromiumos/platform/minigbm
+ source = minigbm.patch
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = libminigbm-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ab47d646523
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Philip Goto <philip.goto@gmail.com>
+pkgname=libminigbm-git
+pkgver=r182.4df286c
+pkgrel=1
+pkgdesc="The Chromium OS shell for Linux"
+arch=('x86_64')
+url="https://www.chromium.org/chromium-os"
+license=('GPL')
+provides=('libminigbm')
+source=("git+https://chromium.googlesource.com/chromiumos/platform/minigbm"
+ "minigbm.patch")
+sha256sums=('SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd minigbm
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd minigbm
+ patch -Np1 -i "${srcdir}/minigbm.patch"
+}
+
+build() {
+ cd minigbm
+ make
+}
+
+package() {
+ install -dm 755 "${pkgdir}/usr/lib"
+ install -m 755 "minigbm/libminigbm.so.1.0.0" "${pkgdir}/usr/lib/libminigbm.so"
+}
diff --git a/minigbm.patch b/minigbm.patch
new file mode 100644
index 00000000000..2088fa5c9aa
--- /dev/null
+++ b/minigbm.patch
@@ -0,0 +1,12 @@
+diff -ura minigbm.orig/common.mk minigbm.new/common.mk
+--- minigbm.orig/common.mk 2017-08-09 21:48:00.970953150 +0200
++++ minigbm.new/common.mk 2017-08-09 21:49:03.386297173 +0200
+@@ -311,7 +311,7 @@
+ # The same goes for CFLAGS.
+ COMMON_CFLAGS-gcc := -fvisibility=internal -ggdb3 -Wa,--noexecstack
+ COMMON_CFLAGS-clang := -fvisibility=hidden -ggdb
+-COMMON_CFLAGS := -Wall -Werror -fno-strict-aliasing $(SSP_CFLAGS) -O1 -Wformat=2
++COMMON_CFLAGS := -Wall -fno-strict-aliasing $(SSP_CFLAGS) -O1 -Wformat=2
+ CXXFLAGS += $(COMMON_CFLAGS) $(COMMON_CFLAGS-$(CXXDRIVER))
+ CFLAGS += $(COMMON_CFLAGS) $(COMMON_CFLAGS-$(CDRIVER))
+ CPPFLAGS += -D_FORTIFY_SOURCE=2