# $Id: PKGBUILD 244452 2015-08-20 20:37:01Z alucryd $ # Maintainer: Karl-Felix Glatzer # Contributor: Maxime Gauduin # Contributor: Gustavo Alvarez pkgname=mingw-w64-l-smash pkgver=2.9.1 pkgrel=2 pkgdesc='MP4 muxer and other tools' arch=('any') url='https://github.com/l-smash/l-smash' license=('custom') depends=('mingw-w64-crt') makedepends=('mingw-w64-gcc' 'fakeroot') options=(!strip !buildflags staticlibs) source=("l-smash-${pkgver}.tar.gz::https://github.com/l-smash/l-smash/archive/v${pkgver}.tar.gz") sha256sums=('17f24fc8bffba753f8c628f1732fc3581b80362341274747ef6fb96af1cac45c') _architectures="i686-w64-mingw32 x86_64-w64-mingw32" build() { for _arch in ${_architectures}; do mkdir -p ${srcdir}/build-${_arch} && cd ${srcdir}/build-${_arch} ${srcdir}/l-smash-${pkgver}/configure \ --prefix=/usr/${_arch} \ --cross-prefix=${_arch}- \ --enable-shared make done } package() { for _arch in ${_architectures}; do cd ${srcdir}/build-${_arch} make DESTDIR="${pkgdir}" install #install -dm 755 "${pkgdir}"/usr/share/licenses/l-smash #install -m 644 LICENSE "${pkgdir}"/usr/share/licenses/l-smash/ ${_arch}-strip --strip-unneeded ${pkgdir}/usr/${_arch}/bin/*.dll ${_arch}-strip -g ${pkgdir}/usr/${_arch}/lib/*.a rm ${pkgdir}/usr/${_arch}/bin/*.exe done } # vim: ts=2 sw=2 et: