summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGonzalo Exequiel Pedone2019-04-15 16:56:39 -0300
committerGonzalo Exequiel Pedone2019-04-15 16:56:39 -0300
commitfbeee5b1faf4132a752fd1df3a82015fd817fca5 (patch)
tree71777d923bf18c088b56f8847e1257bb7d1654ec /PKGBUILD
parentbc7b934e87a2858b0c24824e9bf31dbad54f2557 (diff)
downloadaur-fbeee5b1faf4132a752fd1df3a82015fd817fca5.tar.gz
Package updated.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 37316899deb..7a5c0b0c5d9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,4 @@
-# PKGBUILD for android-ffmpeg
+# PKGBUILD for android-libogg
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
_android_arch=x86-64
@@ -6,22 +6,25 @@ source android-env.sh ${_android_arch}
pkgname=android-${_android_arch}-libogg
pkgver=1.3.3
-pkgrel=1
+pkgrel=2
pkgdesc="Ogg bitstream and framing library (android)"
-arch=(any)
+arch=('any')
url="http://xiph.org"
license=('BSD')
-depends=('apache-ant'
- 'android-ndk>=r18.b'
- "android-platform-$ANDROID_MINIMUM_PLATFORM"
- 'android-sdk-25.2.5'
- 'android-sdk-build-tools'
- 'android-sdk-platform-tools')
+
+if [ -z "${ANDROID_NO_DEPS}" ]; then
+ depends=('android-ndk')
+fi
+
options=(!strip !buildflags staticlibs !emptydirs)
makedepends=('android-pkg-config')
source=(http://downloads.xiph.org/releases/ogg/libogg-${pkgver}.tar.gz)
sha256sums=('c2e8a485110b97550f453226ec644ebac6cb29d1caef2902c007edab4308d985')
+prepare() {
+ check_ndk_version_ge_than 18.0
+}
+
build() {
cd "${srcdir}"/libogg-${pkgver}
@@ -47,6 +50,6 @@ package() {
make DESTDIR="$pkgdir" install
rm -r "${pkgdir}"/${ANDROID_LIBS}/share/doc
- ${ANDROID_STRIP} "${pkgdir}"/${ANDROID_LIBS}/lib/*.so
- ${ANDROID_STRIP} "$pkgdir"/${ANDROID_LIBS}/lib/*.a
+ ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_LIBS}/lib/*.so
+ ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_LIBS}/lib/*.a
}