summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 84a151d1aef3650c8e0afa0c96a650454609789d (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
# Maintainer: Tinu Weber <martin.weber@epfl.ch>

pkgname=epfl-scripts-git
_pkgname=epfl-scripts
pkgver=r59.69f6024
pkgrel=1

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

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

depends=(coreutils)

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

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

package() {
  depends+=(curl bash file openconnect perl-html-tree perl-io-stringy
            perl-lwp-protocol-https perl-html-treebuilder-xpath
            perl-www-mechanize perl-xml-xpathengine)
  optdepends=('iproute2: network-namespaces in epfl-vpn'
              'iptables: network-namespaces in epfl-vpn')

  cd "$srcdir"/"$_pkgname"
  install -Dm 755 bin/epfl-vpn "$pkgdir"/usr/bin/epfl-vpn
  install -Dm 755 bin/gnupaste "$pkgdir"/usr/bin/gnupaste
  install -Dm 755 bin/pastegnugen.pl "$pkgdir"/usr/bin/pastegnugen.pl
  install -Dm 755 bin/tl.pl "$pkgdir"/usr/bin/tl.pl
  install -Dm 755 bin/velo.pl "$pkgdir"/usr/bin/velo.pl
}