summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 16 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5d5fc7cd733..bf492f1aa17 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,24 +5,30 @@
_basename=faac
pkgname=lib32-faac
pkgver=1.30
-pkgrel=1
-pkgdesc="An AAC audio encoder (32 bit)"
+pkgrel=2
+pkgdesc="Freeware Advanced Audio Coder"
arch=(x86_64)
url="https://www.audiocoding.com/"
-license=('GPL2' 'custom:FAAC')
+license=('GPL2' 'custom')
depends=(lib32-glibc faac)
-source=(${_basename}-${pkgver}.tar.gz::"https://github.com/knik0/faac/archive/${pkgver/./_}.tar.gz")
-sha256sums=('adc387ce588cca16d98c03b6ec1e58f0ffd9fc6eadb00e254157d6b16203b2d2')
+source=(${_basename}-${pkgver}.tar.gz::"https://github.com/knik0/${_basename}/archive/${pkgver/./_}.tar.gz")
+sha512sums=('8582cd580dba2a347d15dc4fab42020d7120d0552c54ab74cfaf59ba1b270abb94c67e39d42459a14cbc6e98f3fd00cbda589e1b4f0c7278e41bdef6ae7b6554')
+
+prepare() {
+ mv -v "${_basename}-${pkgver/./_}" "${_basename}-${pkgver}"
+
+ cd "${_basename}-${pkgver}"
+
+ autoreconf -vfi
+}
build() {
- cd ${_basename}-${pkgver/./_}
+ cd "${_basename}-${pkgver}"
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
- ./bootstrap
-
./configure \
--build=i686-pc-linux-gnu \
--prefix=/usr \
@@ -32,12 +38,12 @@ build() {
}
package() {
- cd ${_basename}-${pkgver/./_}
+ cd "${_basename}-${pkgver}"
make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/{bin,include,share}
- install -Dm644 "${srcdir}"/${_basename}-${pkgver/./_}/COPYING \
+ install -Dm644 "${srcdir}"/${_basename}-${pkgver}/COPYING \
"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}