diff options
author | Gonzalo Exequiel Pedone | 2024-04-06 12:48:31 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-04-06 12:48:31 -0300 |
commit | 7064916243aab95a678adaa09ca73825d096117a (patch) | |
tree | 0f9c5e3f87712b79eeebcf3f0d29dc46b9c5c0de /PKGBUILD | |
download | aur-android-x86-libsm.tar.gz |
New package.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9bd656faa1e7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# 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=x86 + +pkgname=android-${_android_arch}-libsm +pkgver=1.2.4 +pkgrel=1 +arch=('any') +pkgdesc="X11 Session Management library (Android ${_android_arch})" +license=('custom') +url="https://xorg.freedesktop.org/" +depends=("android-${_android_arch}-libice") +makedepends=("android-configure" + "android-${_android_arch}-xorg-util-macros" + "android-${_android_arch}-xtrans" + "android-${_android_arch}-xorgproto") +options=(!strip !buildflags staticlibs !emptydirs) +source=("${url}/releases/individual/lib/libSM-${pkgver}.tar.xz"{,.sig}) +md5sums=('ffa434ed96ccae45533b3d653300730e' + 'SKIP') +validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alanc@freedesktop.org> + +build() { + cd "${srcdir}/libSM-$pkgver" + source android-env ${_android_arch} + + android-${_android_arch}-configure \ + --sysconfdir="${ANDROID_PREFIX_ETC}" + make $MAKEFLAGS +} + +package() { + cd "${srcdir}/libSM-$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 +} |