blob: 42603b3ed1dd037f1571ddd77acb3fd428aad611 (
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
|
# Maintainer: James An <james@jamesan.ca>
_pkgname=webui-aria2
pkgname="$_pkgname-git"
pkgver=r305.091fbb0
pkgrel=1
pkgdesc="Pure HTML/CSS/JS frontend for aria2"
arch=('any')
url="https://github.com/ziahamza/webui-aria2"
license=('MIT')
optdepends=(
'aria2: download utility backend'
'chromium: browser to access front end'
'epiphany: browser to access front end'
'firefox: browser to access front end'
'google-chrome: browser to access front end'
'midori: browser to access front end'
'netsurf: browser to access front end'
'opera: browser to access front end'
'rekonq: browser to access front end'
)
makedepends=('git')
source=(
"$pkgname"::"git+https://github.com/ziahamza/$_pkgname.git"
aria2d.service
$_pkgname
)
md5sums=('SKIP'
'e66a1b86f501ae22b41ab69d97a0c4ee'
'da1de4952903892fc0f0b00df1aebb5c')
pkgver() {
cd "$pkgname"
(
set -o pipefail
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
rm -rf "$pkgname/.git"
}
package() {
# install package files
install -dm755 "$pkgdir/usr/share"
cp -R "$pkgname" "$pkgdir/usr/share/$_pkgname"
find "$pkgdir/usr/share/" -type f -exec chmod 0644 {} +
find "$pkgdir/usr/share/" -type d -exec chmod 0755 {} +
# install aria2 systemd service
install -Dm644 aria2d.service "$pkgdir/usr/lib/systemd/user/aria2d.service"
# install package /usr/bin start file
install -Dm755 $_pkgname "$pkgdir/usr/bin/$_pkgname"
}
# Make systemd service file to start aria2c.
# Make bash script to start webui-aria2 index.html page.
# https://github.com/ziahamza/webui-aria2
# https://wiki.archlinux.org/index.php/aria2#Web_UIs
|