blob: 73fa6ce9cb1d7b500f4428cee7b8dc43bf041a20 (
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
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# compile on debain using: makedeb --file PKGBUILD_DEIBAN -s
# makedeb: https://github.com/makedeb/makedeb
# Maintainer: Suvojit Ghosh <ghoshsuvojit2012@gmail.com>
# Developer: Ronak Sanpui
pkgname=senpahe-git
pkgver=r60.8ceafe8
pkgrel=1
epoch=
pkgdesc="Stream and download anime from animepahe right from the terminal!"
arch=(x86_64)
url="https://gitlab.com/TGS963/senpahe-git"
license=('GPL')
groups=()
depends=(mpv openssl ffmpeg curl aria2)
makedepends=(git python python-pip)
checkdepends=()
optdepends=()
provides=(senpahe)
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()
pkgver() {
cd $pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $pkgname
sed -i "s/Dev\ Channel/$pkgver/" main.py
sed -i "s/Opened in Developer mode!/$pkgdesc/" main.py
if command -v pyinstaller &> /dev/null; then
pyinstaller --onefile main.py -n senpahe
else
pip install pyinstaller
pyinstaller --onefile main.py -n senpahe
pip uninstall pyinstaller -y
fi
}
package() {
cd $pkgname/dist/
install -Dm755 ./senpahe "$pkgdir/usr/bin/senpahe"
}
md5sums=('SKIP')
|