-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
36 lines (33 loc) · 1.16 KB
/
PKGBUILD
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
# Maintainer: lilydjwg <lilydjwg@gmail.com>
pkgname=wait-online
pkgver=0.2
pkgrel=2
pkgdesc="tools to wait for Internet (204 response)"
arch=('any')
license=("GPLv3")
depends=('python-systemd')
source=(
check-online
wait-online
tmpfiles.conf
wait-online.service
wait-online-onresume.service
)
sha1sums=('2ed9dcf07dd9a427a62e151ae4ee34c696e53d2c'
'b0d83c0c046764331a6625d3027f3102aa632412'
'3f861ed5cf7bd2820dee66f6b575852418deeea0'
'71bb1de870639fe3dc589d4deb000a3072c568de'
'4ea5880b28933efe01f0461916ddef0f01d23efa')
build() {
true
}
package() {
cd "${srcdir}"
install -Dm755 wait-online "${pkgdir}/usr/bin/wait-online"
install -Dm755 check-online "${pkgdir}/usr/bin/check-online"
install -Dm644 wait-online.service "${pkgdir}/usr/lib/systemd/system/wait-online.service"
install -Dm644 wait-online-onresume.service "${pkgdir}/usr/lib/systemd/system/wait-online-onresume.service"
install -Dm644 tmpfiles.conf "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
mkdir -p "${pkgdir}"/usr/lib/systemd/system/multi-user.target.wants
ln -s ../network-online.target "${pkgdir}"/usr/lib/systemd/system/multi-user.target.wants
}