summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f96ea027f76eac2efd4aaacd693beb7b9ab5924e (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=('GPL')
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"
}