View difference between Paste ID: zYzb6QFi and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
1 | + | # Maintainer: h31 <h31mail@yandex.com> |
2 | # Contributor: julroy67 <julroy67 [AT] gmail.com> | |
3 | ||
4 | pkgname=libvpx-git | |
5 | pkgver=20100520 | |
6 | pkgrel=1 | |
7 | pkgdesc="The VP8 Codec SDK (from git)" | |
8 | arch=('i686' 'x86_64') | |
9 | url="http://www.webmproject.org/" | |
10 | license=('BSD') | |
11 | depends=() | |
12 | makedepends=('gcc-libs' 'git' 'yasm') | |
13 | provides=() | |
14 | conflicts=('libvpx') | |
15 | ||
16 | _gitroot='git://review.webmproject.org/libvpx.git' | |
17 | _gitname='libvpx' | |
18 | ||
19 | build() { | |
20 | msg "Connecting to the GIT server...." | |
21 | cd "$srcdir" | |
22 | ||
23 | if [[ -d $srcdir/$_gitname ]] ; then | |
24 | cd "$_gitname" | |
25 | git pull origin | |
26 | msg "The local files are updated." | |
27 | else | |
28 | git clone $_gitroot | |
29 | fi | |
30 | ||
31 | msg "GIT checkout done" | |
32 | msg "Starting make..." | |
33 | ||
34 | cd "$srcdir" | |
35 | mkdir "$_gitname-build" | |
36 | cd "$_gitname-build" | |
37 | ||
38 | [ "$CARCH" = "i686" ] && "$srcdir/$_gitname/configure" \ | |
39 | --target=x86-linux-gcc \ | |
40 | --enable-vp8 \ | |
41 | --enable-postproc \ | |
42 | --enable-psnr \ | |
43 | --enable-pic \ | |
44 | --disable-install-docs \ | |
45 | --disable-install-srcs | |
46 | ||
47 | ||
48 | [ "$CARCH" = "x86_64" ] && "$srcdir/$_gitname/configure" \ | |
49 | --target=x86_64-linux-gcc \ | |
50 | --enable-vp8 \ | |
51 | --enable-postproc \ | |
52 | --enable-psnr \ | |
53 | --enable-pic \ | |
54 | --disable-install-docs \ | |
55 | --disable-install-srcs | |
56 | ||
57 | make || return 1 | |
58 | ||
59 | mkdir $pkgdir/usr | |
60 | make DIST_DIR="$pkgdir/usr" install || return 1 | |
61 | rm $pkgdir/usr/md5sums.txt | |
62 | } |