summaryrefslogtreecommitdiff
path: root/pcr/npapi-vlc-git/PKGBUILD
blob: bfba5a1e231a344ffed28db9e54fa05be0dbc2a8 (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
44
45
46
47
48
49
50
51
52
53
54
# Maintainer (Arch): Det <nimetonmaili g-mail>
# Contributor (Arch): Pimper (M0Rf30)
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

_pkgname=npapi-vlc
pkgname=$_pkgname-git
pkgver=2.2.1.95.r1444.gd5accd8
pkgrel=1
pkgdesc="The modern VLC Mozilla (NPAPI) plugin"
arch=('i686' 'x86_64')
url="http://git.videolan.org/?p=$_pkgname.git;a=summary"
license=('LGPL-2.1')
depends=('vlc')
makedepends=('git' 'gtk2' 'npapi-sdk')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
options=('!libtool')
source=("git://git.videolan.org/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
  cd $_pkgname

  echo $(git describe | cut -d "-" -f1-2 | tr - .).r$(git rev-list HEAD --count).$(git describe | cut -d "-" -f3)
}

prepare() {
  cd $_pkgname

  msg2 "Updating sources..."
  git submodule update --init
}

build() {
  cd $_pkgname

  msg2 "Starting autogen.sh..."
  sh ./autogen.sh

  msg2 "Starting configure..."
  ./configure --prefix=/usr

  msg2 "Starting make..."
  make
}

package() {
  cd $_pkgname

  msg2 "Starting make install..."
  make DESTDIR="$pkgdir" install

  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING"
}