summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8eb5e85574f59504e59ade03c4bb94177769e125 (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
# Maintainer: ny-a <nyaarch64@gmail..com>
# Contributor: Det <nimetonmaili g-mail>
# Contributor: Pimper (M0Rf30)

_pkgname=npapi-vlc
pkgname=$_pkgname-git
_commit=784b0643c89878f589472b849bbc709d8846a926
pkgver=3.0.3.r1570.3.0.3
pkgrel=1
pkgdesc="The modern VLC Mozilla (NPAPI) plugin - Git version"
arch=('x86_64')
url="https://code.videolan.org/videolan/$_pkgname"
license=('GPL2+')
depends=('vlc')
makedepends=('git' 'gtk2' 'npapi-sdk')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
options=('!libtool')
source=("git+$url.git#commit=$_commit")
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
  git submodule update --init
}

build() {
  cd $_pkgname

  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd $_pkgname

  make DESTDIR="$pkgdir" install

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