blob: b41ccd1a27f76dd27cb026614366ee1d04923be4 (
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
|
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: kevku <kevku@gmx.com>
pkgbase=python-librtmp
pkgname=(python-librtmp python2-librtmp)
pkgver=0.2.1
pkgrel=1
pkgdesc="Python interface to librtmp"
arch=('i686' 'x86_64')
url="https://github.com/chrippa/python-librtmp"
license=('custom: Simplified BSD')
makedepends=('python-setuptools' 'python-cffi'
'python2-setuptools' 'python2-cffi' 'python2-singledispatch'
'rtmpdump')
source=("https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-$pkgver.tar.gz")
sha256sums=('118993a1a044fcd5709fe98bf953ddc5b2d0c08c0ece5618af4a44117acf0588')
prepare() {
# copy folder, so we can cleanly build for both python versions
cp -rup python-librtmp-$pkgver python2-librtmp-$pkgver
}
build() {
# build for python 3
cd python-librtmp-$pkgver
python setup.py build
# build for python 2
cd ../python2-librtmp-$pkgver
python2 setup.py build
}
# package for python 3
package_python-librtmp() {
depends=('python' 'python-cffi' 'rtmpdump')
pkgdesc+=" (python3 version)"
cd python-librtmp-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# package for python 2
package_python2-librtmp() {
depends=('python2' 'python2-singledispatch' 'python2-cffi' 'rtmpdump')
pkgdesc+=" (python2 version)"
cd python2-librtmp-$pkgver
python2 setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|