summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 27e4b5e52073cdb0b2eaabdcc66ade51c4615b42 (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
# Maintainer: Artem Klevtsov <a.a.klevtsov@gmail.com>
_pkgname=vlc-bittorrent
pkgname=vlc-bittorrent-git
pkgver=v2.8.r1.g0d64665
pkgrel=1
pkgdesc="A bittorrent plugin for VLC."
arch=(x86_64)
url="https://github.com/johang/vlc-bittorrent"
license=('GPL')
depends=(vlc libtorrent-rasterbar)
makedepends=(boost)
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
}

check() {
    cd "${srcdir}/${_pkgname}"
    make check
}

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