summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c7dc3efee7bba151de2968240132c47ffa36d6e (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
36
37
38
39
40
41
42
43
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=xvidcore-svn
pkgver=r2186
pkgrel=1
pkgdesc="High performance and high quality MPEG-4 video codec"
arch=('i686' 'x86_64')
url="https://www.xvid.com/"
license=('GPL2')
depends=('glibc')
makedepends=('subversion' 'nasm')
provides=('xvidcore')
conflicts=('xvidcore')
options=('staticlibs')
#source=("svn+http://anonymous:@svn.xvid.org/trunk")
#sha256sums=('SKIP')


prepare() {
  svn checkout http://svn.xvid.org/trunk --username anonymous --password ""
}

pkgver() {
  cd "trunk"

  _ver="$(svnversion)"
  printf "r%s" "${_ver//[[:alpha:]]}"
}

build() {
  cd "trunk/xvidcore/build/generic"

  ./bootstrap.sh
  ./configure \
    --prefix="/usr"
  make
}

package() {
  cd "trunk/xvidcore/build/generic"

  make DESTDIR="$pkgdir" install
}