summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83bb1a7399bd4e7d4ad9aacc805db9ee9c509209 (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
# Maintainer: PelPix <kylebloss[at]pelpix[dot]info>
# Contributor: DrZaius <lou[at]fakeoutdoorsman.com>
# Contributor: zhuqin <zhuqin83[at]gmail>
# Contributor: pressh <pressh[at]gmail>

pkgname=x264-git
_gitname="x264"
pkgver=0.r2377.1ca7bb9
pkgrel=2
pkgdesc="H.264 video encoder and library"
arch=('i686' 'x86_64')
license=('GPL')
depends=('glibc')
makedepends=('git' 'yasm')
url="http://www.videolan.org/developers/x264.html"
conflicts=('x264' 'libx264')
provides=('x264' 'libx264')
source=('git://git.videolan.org/x264.git')
md5sums=('SKIP')

pkgver() {
  cd $_gitname
  printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd $_gitname

  ./configure --enable-shared
  make
}

package() {
  cd $_gitname

  make DESTDIR="$pkgdir" \
    bindir=/usr/bin \
    libdir=/usr/lib \
    includedir=/usr/include \
    install
}