summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4936f1fda248f4c4c3b71386c2249aaf58644553 (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
# Maintainer: Todd E Johnson <todd@toddejohnson.net>

pkgname=systemd-metered-connection-dependency-git
pkgver=r12.641eaca
pkgrel=1
pkgdesc="Execute systemd services if current connection is not metered."
arch=('any')
url="https://github.com/jdorel/systemd-metered-connection-dependency"
license=('GPL3')
depends=('systemd')
makedepends=('git')
source=("${pkgname}::git+https://github.com/jdorel/systemd-metered-connection-dependency.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$pkgname"

  install -Dm644 unmetered-connection.service "$pkgdir/usr/lib/systemd/system/unmetered-connection.service"
  install -Dm755 check-metered-connection.sh "$pkgdir/usr/bin/check-metered-connection.sh"
}