summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3933195b51d41aff0e1add15e5149c7ac7b7c14c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

pkgname=mingw-w64-libaacs
pkgver=0.9.0
pkgrel=1
pkgdesc="Advanced Access Content System (mingw-w64)"
url="http://www.videolan.org/libaacs"
arch=('any')
license=('LGPL')
depends=('mingw-w64-crt' 'mingw-w64-libgcrypt')
makedepends=('mingw-w64-configure')
options=('staticlibs' '!buildflags' '!strip')
source=(ftp://ftp.videolan.org/pub/videolan/libaacs/${pkgver}/libaacs-${pkgver}.tar.bz2)
sha256sums=('47e0bdc9c9f0f6146ed7b4cc78ed1527a04a537012cf540cf5211e06a248bace')

_architectures="i686-w64-mingw32 x86_64-w64-mingw32"

build() {
  cd libaacs-$pkgver
  for _arch in ${_architectures}; do
    mkdir -p build-${_arch} && pushd build-${_arch}
    ${_arch}-configure
    make
    popd
  done
}

package() {
  for _arch in ${_architectures}; do
    cd "$srcdir"/libaacs-${pkgver}/build-${_arch}
    make install DESTDIR="$pkgdir"
    ${_arch}-strip --strip-all "$pkgdir"/usr/${_arch}/bin/*.exe
    ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
    ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
  done
}