summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f49c6df95dd2619512d5d42164ce05a18da8c85 (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
# Maintainer: Artem Klevtsov <a.a.klevtsov@gmail.com>
_pkgname=vlc-bittorrent
pkgname=vlc-bittorrent-git
pkgver=v2.14.r0.g6073355
pkgrel=1
pkgdesc="A bittorrent plugin for VLC."
arch=(x86_64)
url="https://github.com/johang/vlc-bittorrent"
license=('GPL3')
depends=('vlc' 'libtorrent-rasterbar')
makedepends=('boost' 'autoconf-archive')
conflicts=('vlc-bittorrent')
replaces=('vlc-bittorrent')
source=('git+https://github.com/johang/vlc-bittorrent.git')
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${srcdir}/${_pkgname}"
    autoreconf -i
    ./configure --prefix=/usr \
                --libdir=/usr/lib/vlc/plugins/bittorrent
    make
}

package() {
    cd "${srcdir}/${_pkgname}"
    make DESTDIR="${pkgdir}" install
}