summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Exequiel Pedone2024-05-01 09:21:02 -0300
committerGonzalo Exequiel Pedone2024-05-01 09:21:02 -0300
commit51fd28d09c679abaf24b1b65b7356343e0bebe98 (patch)
tree1c409af1a6363c09a84206801a416fc8db21c175
downloadaur-android-aarch64-libxmu.tar.gz
New package.
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD43
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..eeea1ca3bf25
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = android-aarch64-libxmu
+ pkgdesc = X11 miscellaneous micro-utility library (Android aarch64)
+ pkgver = 1.2.1
+ pkgrel = 1
+ url = https://gitlab.freedesktop.org/xorg/lib/libxmu
+ arch = any
+ license = MIT-open-group AND SMLNJ AND X11 AND ISC
+ makedepends = android-configure
+ makedepends = android-aarch64-xorg-util-macros
+ depends = android-aarch64-libxext
+ depends = android-aarch64-libxt
+ depends = android-aarch64-libx11
+ depends = android-aarch64-xorgproto
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ options = !emptydirs
+ source = https://xorg.freedesktop.org//archive/individual/lib/libXmu-1.2.1.tar.xz
+ source = https://xorg.freedesktop.org//archive/individual/lib/libXmu-1.2.1.tar.xz.sig
+ validpgpkeys = 3BB639E56F861FA2E86505690FDD682D974CA72A
+ md5sums = 85edefb7deaad4590a03fccba517669f
+ md5sums = SKIP
+
+pkgname = android-aarch64-libxmu
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..b5b03b115225
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+pkg
+src
+*.tar.xz
+*.tar.gz
+*.tar.bz2
+*.asc
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..38a8aaa1392a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
+# Contributor: Andreas Radke <andyrtr@archlinux.org>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+
+_android_arch=aarch64
+
+pkgname=android-${_android_arch}-libxmu
+pkgver=1.2.1
+pkgrel=1
+arch=('any')
+pkgdesc="X11 miscellaneous micro-utility library (Android ${_android_arch})"
+url="https://gitlab.freedesktop.org/xorg/lib/libxmu"
+license=('MIT-open-group AND SMLNJ AND X11 AND ISC')
+depends=("android-${_android_arch}-libxext"
+ "android-${_android_arch}-libxt"
+ "android-${_android_arch}-libx11"
+ "android-${_android_arch}-xorgproto")
+makedepends=('android-configure'
+ "android-${_android_arch}-xorg-util-macros")
+options=(!strip !buildflags staticlibs !emptydirs)
+source=("https://xorg.freedesktop.org//archive/individual/lib/libXmu-${pkgver}.tar.xz"{,.sig})
+md5sums=('85edefb7deaad4590a03fccba517669f'
+ 'SKIP')
+validpgpkeys=('3BB639E56F861FA2E86505690FDD682D974CA72A') # "Matt Turner <mattst88@gmail.com>"
+
+build() {
+ cd "${srcdir}/libXmu-${pkgver}"
+ source android-env ${_android_arch}
+
+ android-${_android_arch}-configure \
+ --sysconfdir="${ANDROID_PREFIX_ETC}"
+ make $MAKEFLAGS
+}
+
+package() {
+ cd "${srcdir}/libXmu-${pkgver}"
+ source android-env ${_android_arch}
+
+ make DESTDIR="${pkgdir}" install
+ rm -rf "$pkgdir/${ANDROID_PREFIX_SHARE}"
+ ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
+ ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
+}