blob: b34186d021a9374f6b9be6bb2e4e9df9ca4d6efa (
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-libde265
pkgver=1.0.15
pkgrel=1
pkgdesc="Open h.265 video codec implementation (mingw-w64)"
arch=('any')
url="https://github.com/strukturag/libde265"
license=('LGPL3')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-cmake')
options=('!buildflags' 'staticlibs' '!strip')
source=(https://github.com/strukturag/libde265/releases/download/v$pkgver/libde265-$pkgver.tar.gz)
sha256sums=('00251986c29d34d3af7117ed05874950c875dd9292d016be29d3b3762666511d')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd $srcdir/libde265-$pkgver
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake ..
make
popd
done
}
package ()
{
for _arch in ${_architectures}; do
cd "$srcdir/libde265-${pkgver}/build-${_arch}"
make install DESTDIR="$pkgdir"
rm "$pkgdir"/usr/${_arch}/bin/*.exe
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
|