blob: 322c298a7526985256272a25963e7e140079dde9 (
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
|
# Maintainer: dreieck
_pkgbase=db-wifi-login
_pkgname="${_pkgbase}"
pkgbase="${_pkgbase}"
pkgname="${_pkgname}"
epoch=0
pkgver=0.1_20220904.1
pkgrel=1
pkgdesc='Captive portal login script for WIFIonICE/ WLAN@DB public WiFi by Deutsche Bahn.'
url="https://aur.archlinux.org/pkgbase/${pkgbase}"
arch=(any)
license=(GPL3)
depends=(
'awk'
'bash'
# 'coreutils' # This is always assumed to be installed, no need to explicitly mention it.
# 'curl' # This is always assumed to be installed, no need to explicitly mention it.
# 'grep' # This is always assumed to be installed, no need to explicitly mention it.
# 'sed' # This is always assumed to be installed, no need to explicitly mention it.
)
makedepends=()
optdepends=(
"db-wifi-login-woice-compat: To act as a drop-in replacement for 'woice'."
)
provides=()
conflicts=()
source=(
'db-wifi-login.sh'
)
sha256sums=(
'b991497117a588a975af67fe9682ac8e32cf5514fe566ecad7869089d623d64e'
)
pkgver() {
cd "${srcdir}"
_ver="$(grep -E '[[:space:]]*_VERSION=' 'db-wifi-login.sh' | tail -n1 | awk -F= '{print $2}' | tr -d -)"
if [ -z "${_ver}" ]; then
error "Could not determine version."
return 1
else
printf '%s' "${_ver}"
fi
}
package() {
cd "${srcdir}"
install -D -v -m755 'db-wifi-login.sh' "${pkgdir}/usr/bin/db-wifi-login"
}
|