summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSR_team2021-06-07 20:48:26 +0300
committerSR_team2021-06-07 20:48:26 +0300
commitfef107cd7f0070400c0979c1ebfa5d0375f3d2b2 (patch)
tree1c4e584b8194b9b50601e525e06f0973a4f1c72c
downloadaur-fef107cd7f0070400c0979c1ebfa5d0375f3d2b2.tar.gz
fork from https://aur.archlinux.org/packages/android-ndk-16b/
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD30
-rw-r--r--android-ndk-16b.install6
-rw-r--r--android-ndk-16b.sh3
4 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..d72965944cee
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = android-ndk-16b-opt
+ pkgdesc = Android C/C++ developer kit. Don't override package `android-ndk` and support any arch
+ pkgver = r16_b
+ pkgrel = 3
+ url = https://developer.android.com/ndk/
+ install = android-ndk-16b.install
+ arch = any
+ license = GPL
+ license = LGPL
+ license = custom
+ depends = ncurses5-compat-libs
+ provides = android-ndk
+ replaces = android-ndk64
+ options = !strip
+ options = staticlibs
+ source = android-ndk-16b.sh
+ source = http://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip
+ sha256sums = eaf17f400698d5829a2b5a137f96f32f9c0e3564c708c6b84922d319d446fff3
+ sha256sums = SKIP
+
+pkgname = android-ndk-16b-opt
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..89253585b2b2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Forked form https://aur.archlinux.org/packages/android-ndk-16b/ by Oscar Morante <spacepluk@gmail.com>
+
+pkgname=android-ndk-16b-opt
+_pkg=android-ndk
+pkgver=r16_b
+pkgrel=3
+pkgdesc="Android C/C++ developer kit. Don't override package \`android-ndk\` and support any arch"
+arch=('any')
+url='https://developer.android.com/ndk/'
+license=('GPL' 'LGPL' 'custom')
+options=('!strip' 'staticlibs')
+install="android-ndk-16b.install"
+provides=('android-ndk')
+replaces=('android-ndk64')
+depends=('ncurses5-compat-libs')
+source=('android-ndk-16b.sh' "http://dl.google.com/android/repository/$_pkg-${pkgver/_/}-linux-$(uname -m).zip")
+sha256sums=('eaf17f400698d5829a2b5a137f96f32f9c0e3564c708c6b84922d319d446fff3'
+ 'SKIP')
+
+package() {
+ install -d "$pkgdir/opt"
+ mv "$_pkg-${pkgver/_/}" "$pkgdir/opt/$_pkg-16b"
+ install -Dm755 android-ndk-16b.sh "$pkgdir/etc/profile.d/android-ndk-16b.sh"
+
+ # Fix permissions
+ chmod -R o=g "$pkgdir/opt/$_pkg-16b"
+ find "$pkgdir/opt/$_pkg-16b" -perm 744 -exec chmod 755 {} +
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/android-ndk-16b.install b/android-ndk-16b.install
new file mode 100644
index 000000000000..9d5e400344f0
--- /dev/null
+++ b/android-ndk-16b.install
@@ -0,0 +1,6 @@
+post_install() {
+ echo 'Source /etc/profile.d/android-ndk.sh or login again to add the'
+ echo 'Android NDK tools to your path.'
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/android-ndk-16b.sh b/android-ndk-16b.sh
new file mode 100644
index 000000000000..641574b30d2d
--- /dev/null
+++ b/android-ndk-16b.sh
@@ -0,0 +1,3 @@
+export PATH=$PATH:/opt/android-ndk-16b
+export ANDROID_NDK=/opt/android-ndk-16b
+export ANDROID_NDK_HOME=/opt/android-ndk-16b