blob: 5c60a2da1a5dd573a57f435e9d7279be97e35824 (
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
54
55
56
57
58
59
60
61
62
63
64
|
pkgname=animewatch-pyqt5
_pkgname=AnimeWatch
pkgver=4.0.0
pkgrel=0
pkgdesc="An Audio/Video Manager and Front End for mpv/mplayer with special emphasis on Anime Collection"
arch=(any)
conflicts=('animewatch-pyqt4' 'animewatch-pyqt5.git')
license=('GPL3')
depends=('python' 'qt5-webengine' 'python-pyqt5' 'python-pycurl' 'python-urllib3' 'curl' 'libnotify' 'python-dbus' 'libtorrent-rasterbar'
'python-beautifulsoup4' 'python-psutil' 'python-pillow' 'python-lxml' 'mpv' 'mplayer' 'ffmpegthumbnailer' 'sqlite3' 'python-pytaglib'
'youtube-dl' 'wget')
#optdepends=('livestreamer' 'youtube-dl' 'wget')
makedepends=('git')
#source=("git+https://github.com/kanishka-linux/AnimeWatch.git")
source=("https://github.com/kanishka-linux/${_pkgname}/releases/download/v${pkgver}-${pkgrel}/${_pkgname}-${pkgver}-${pkgrel}.tar.bz2")
md5sums=('d1800eaf96a49897c224eb1e551abec9')
_gitname=AnimeWatch-PyQt5
package() {
_bpath="${srcdir}/${_pkgname}-${pkgver}-${pkgrel}/${_gitname}"
install -d "${pkgdir}/usr/share/${_pkgname}/"
install -d "${pkgdir}/usr/share/${_pkgname}/Plugins/"
install -d "${pkgdir}/usr/share/applications/"
install -d "${pkgdir}/usr/bin/"
for file in "${_bpath}/"*;do
nm=$(echo $file | rev | cut -d'/' -f1 | rev)
if [ -d "$file" ];then
if [ $nm == 'Plugins' ];then
_plugin_path="$file/"
for plugins in "${_plugin_path}"*;do
plugin_name=$(echo $plugins | rev | cut -d'/' -f1 | rev)
if [ plugin_name != 'installPlugins.py' ];then
echo $plugins
echo 'Plugins copying'
install -Dm755 "$plugins" "${pkgdir}/usr/share/${_pkgname}/Plugins/"
fi
done
fi
else
if [ $nm == 'AnimeWatch.desktop' ];then
echo $file
echo 'desktop file copying'
cat "$file" | sed 's/Exec=/Exec=python -B \/usr\/share\/AnimeWatch\/animeWatch.py \%u/g' > "${pkgdir}/usr/share/applications/AnimeWatch.desktop"
elif [ $nm == 'anime-watch' ];then
echo $file
echo 'anime-watch script'
install -Dm755 "$file" "${pkgdir}/usr/bin/anime-watch"
chmod +x "${pkgdir}/usr/bin/anime-watch"
else
if [ $nm != 'install.py' ];then
echo $file
echo 'source files copying'
install -Dm755 "$file" "${pkgdir}/usr/share/${_pkgname}/"
fi
fi
fi
done
}
|