blob: 9379f0e3814fcd14bb5bb17da8b5df4f96755e01 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: dreieck
_configfiles=(
'standard_config'
'stop_list'
)
_pkgname=catch-my-bus-python
pkgname="${_pkgname}-git"
pkgver=r105.20170419.e458b52
pkgrel=7
pkgdesc="A GTK3 status icon for real time public transport departures from a selected stop in Dresden (Verkehrsverbund Oberelbe/ VVO)."
arch=(
"any"
)
url="https://github.com/meepoSenpai/catch-my-bus-python"
license=(
'MIT'
)
backup=()
for _config_file in "${_configfiles[@]}"; do
backup+=("etc/catch-my-bus-python/${_config_file}")
done
depends=(
'gtk3'
'libgsf'
'python>=3'
'python-gobject'
'python-notify2'
'python-requests'
'sh'
)
makedepends=(
'git'
)
optdepends=()
provides=(
"${_pkgname}=${pkgver}"
)
conflicts=(
"${_pkgname}"
)
install="${_pkgname}.install"
source=(
"${_pkgname}::git+https://github.com/meepoSenpai/catch-my-bus-python.git"
"catch-my-bus-vvo.sh"
"${install}"
"license-dummy.txt"
)
sha256sums=(
'SKIP'
'b04ffdf8eeae08d6582c6a1dd8102148cfb147c32c6bcb16ba832cd446164388'
'4762ab7a033a7ebcb80c35fec33dd4ac40212f09abb88c834037139b0ec82793'
'e17fa9f9faa454b2068571bfa60ad70945d945d3f804862beffd4a8d94fa0c7c'
)
pkgver() {
cd "${srcdir}/${_pkgname}"
_rev="$(git rev-list HEAD --count)"
_date="$(git log -1 --format=%cd --date=format:%Y%m%d)"
_hash="$(git rev-parse --short HEAD)"
printf '%s' "r${_rev}.${_date}.${_hash}"
}
package() {
cd "${srcdir}/${_pkgname}"
install -d -v -m755 "${pkgdir}/opt/catch-my-bus-python"
install -d -v -m755 "${pkgdir}/opt/catch-my-bus-python/assets"
install -d -v -m755 "${pkgdir}/opt/catch-my-bus-python/ui"
install -v -m755 -t "${pkgdir}/opt/catch-my-bus-python" src/catch_my_bus.py
install -v -m644 -t "${pkgdir}/opt/catch-my-bus-python" src/{departure.py,fetch_station.py,notification_time_list.py,stop_menu.py}
install -v -m644 -t "${pkgdir}/opt/catch-my-bus-python/assets" src/assets/{bus_stop_icon.png,stop.png}
install -v -m644 -t "${pkgdir}/opt/catch-my-bus-python/ui" src/ui/{departure_item.py,gtk_icon.py,gtk_popup.py}
for _config_file in "${_configfiles[@]}"; do
install -D -v -m644 "src/assets/${_config_file}" "${pkgdir}/etc/catch-my-bus-python/${_config_file}"
ln -sv "/etc/catch-my-bus-python/${_config_file}" "${pkgdir}/opt/catch-my-bus-python/assets/${_config_file}"
done
install -D -v -m755 "${srcdir}/catch-my-bus-vvo.sh" "${pkgdir}/usr/bin/catch-my-bus-vvo"
for _docfile in README.md; do
install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/${_docfile}"
done
install -D -v -m644 "${srcdir}/license-dummy.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license-dummy"
}
|