blob: 57eea3356965fe0b6dacbd7f17142f72dbb4ebd9 (
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
|
# Maintainer: ichundes <derago@gmail.com>
pkgname='pyrescene-git'
pkgver=0.7.r48.g8a64690
pkgrel=1
pkgdesc='pyReScene is a port of ReScene .NET to the Python programming language.'
url='https://github.com/srrDB/pyrescene'
arch=('any')
license=('MIT' 'GPL' 'custom')
depends=('python' 'unrar' 'lib32-libstdc++5')
optdepends=('chromaprint')
makedepends=('git')
provides=("pyrescene")
conflicts=("pyrescene")
source=('pyrescene-git::git+https://github.com/srrDB/pyrescene.git' 'git+https://github.com/dryes/rarlinux.git')
md5sums=('SKIP'
'SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "${pkgname}"
cp 'rescene/srr.py' 'rescene/srr.py~'
sed -i -r 's|(dest=\"rar_executable_dir\",)|\1 default=\"/opt/rarlinux\",|' 'rescene/srr.py'
python 'setup.py' install --root="${pkgdir}"
mv 'rescene/srr.py~' 'rescene/srr.py'
mkdir -p "${pkgdir}/opt/rarlinux"
python 'bin/preprardir.py' "${srcdir}/rarlinux" "${pkgdir}/opt/rarlinux"
chown -R root:root "${pkgdir}/opt/rarlinux"
chmod -R a+x "${pkgdir}/opt/rarlinux"
# RAR 5.50 breaks pyrescene
rm "${pkgdir}/opt/rarlinux/2017-08-11_rar550"
install -Dm755 "awescript/awescript.py" "$pkgdir/usr/bin/awescript"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|