forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
49 lines (41 loc) · 1.16 KB
/
PKGBUILD
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
realname=qtav
pkgname="${MINGW_PACKAGE_PREFIX}-${realname}"
pkgver=r3368.39e6eafe
pkgrel=1
pkgdesc="Multimedia framework based on Qt and FFmpeg (mingw-w64)"
arch=('any')
license=('LGPL')
depends=("${MINGW_PACKAGE_PREFIX}-uchardet"
"${MINGW_PACKAGE_PREFIX}-ffmpeg"
"${MINGW_PACKAGE_PREFIX}-openal"
"${MINGW_PACKAGE_PREFIX}-qt5")
makedepends=('git')
source=("${realname}::git://github.com/wang-bin/QtAV.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${realname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${realname}"
git submodule update --init
}
build() {
cd "${srcdir}/${realname}"
MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
cmake \
-G"MSYS Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \
-DBUILD_EXAMPLES=OFF \
-DBUILD_PLAYERS=ON \
-DBUILD_TESTS=OFF \
../${realname}
make
}
package() {
cd "${srcdir}/${realname}"
make DESTDIR="${pkgdir}" install
mkdir -p "${pkgdir}${MINGW_PREFIX}/share/licenses/${realname}"
cp lgpl-2.1.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/${realname}/LICENSE"
}