summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c8c4f14c962fef75d6a095630360cae7b229b773 (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
# Maintainer: Tinu Weber <https://gnugen.ch/~mtweber>

pkgname=epfl-scripts-git
pkgver=r68.86eb50d
pkgrel=1
arch=(any)

pkgdesc="Collection of scripts for simplifying one's life at EPFL"
url='https://gitlab.gnugen.ch/gnugen/epfl-scripts'
license=(Apache)

provides=(epfl-scripts)
conflicts=(epfl-scripts)

depends=(coreutils)
optdepends=('iproute2: network-namespaces in epfl-vpn'
            'iptables: network-namespaces in epfl-vpn')

source=('git+https://gitlab.gnugen.ch/gnugen/epfl-scripts.git')
md5sums=(SKIP)

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

package() {
  depends+=(curl bash file openconnect perl-file-mimeinfo perl-html-tree
            perl-io-stringy perl-lwp-protocol-https perl-html-treebuilder-xpath
            perl-www-mechanize perl-xml-xpathengine sh)

  install -Dm755 -t "$pkgdir"/usr/bin epfl-scripts/bin/*
}