summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGonzalo Exequiel Pedone2024-07-20 14:05:23 -0300
committerGonzalo Exequiel Pedone2024-07-20 14:05:23 -0300
commit5db321c8c021ad69e6b479afa9dac9a70188f657 (patch)
tree2f67b15bb3ef6814f9e6b8bfde6c0e5f8af8cbb7 /PKGBUILD
parent9f7a76952d1907745dbe79162d7a522312b932d8 (diff)
downloadaur-5db321c8c021ad69e6b479afa9dac9a70188f657.tar.gz
Install static libraries.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 23 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ebbfcd10d656..c7240db32781 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ _android_arch=armv7a-eabi
pkgname=android-${_android_arch}-flac
pkgver=1.4.3
-pkgrel=1
+pkgrel=2
arch=('any')
pkgdesc="Free Lossless Audio Codec (Android ${_android_arch})"
url='https://xiph.org/flac/'
@@ -17,8 +17,7 @@ makedepends=('android-cmake'
'nasm')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/xiph/flac/releases/download/${pkgver}/flac-${pkgver}.tar.xz")
-# https://github.com/xiph/flac/releases
- sha256sums=('6c58e69cd22348f441b861092b825e591d0b822e106de6eb0ee4d05d27205b70')
+sha256sums=('6c58e69cd22348f441b861092b825e591d0b822e106de6eb0ee4d05d27205b70')
prepare() {
cd "${srcdir}/flac-${pkgver}"
@@ -60,23 +59,39 @@ build() {
android-${_android_arch}-cmake \
-S . \
- -B build \
+ -B build-shared \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_DOCS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_PROGRAMS=OFF \
-DINSTALL_MANPAGES=OFF \
- -DBUILD_TESTING:BOOL=OFF \
+ -DBUILD_TESTING=OFF \
-DWITH_STACK_PROTECTOR=OFF \
-DOGG_INCLUDE_DIR="${ANDROID_PREFIX_INCLUDE}" \
-DOGG_LIBRARY="${ANDROID_PREFIX_LIB}/libogg.so"
- make -C build $MAKEFLAGS
+ make -C build-shared $MAKEFLAGS
+
+ android-${_android_arch}-cmake \
+ -S . \
+ -B build-static \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DBUILD_DOCS=OFF \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_PROGRAMS=OFF \
+ -DINSTALL_MANPAGES=OFF \
+ -DBUILD_TESTING=OFF \
+ -DWITH_STACK_PROTECTOR=OFF \
+ -DOGG_INCLUDE_DIR="${ANDROID_PREFIX_INCLUDE}" \
+ -DOGG_LIBRARY="${ANDROID_PREFIX_LIB}/libogg.a"
+ make -C build-static $MAKEFLAGS
}
package() {
cd "${srcdir}/flac-${pkgver}"
source android-env ${_android_arch}
- make -C build DESTDIR="$pkgdir" install
- ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
+ make -C build-shared DESTDIR="${pkgdir}" install
+ make -C build-static DESTDIR="${pkgdir}" install
+ ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
+ ${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}