summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e71816cdfaee0e5900b34822527ba7e73f77b10d (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
40
41
42
43
44
45
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com
# From pom-ng-console
# Contributor: Gatien Bovyn <gatien.bovyn@gmail.com>
# Contributor: Guy Martin <gmsoft@tuxicoman.be>

# No releases yet

set -u
_pkgname='pom-ng-addons'
pkgname="${_pkgname}-git"
pkgver=0.0.2.r16.975306c
pkgrel=1
pkgdesc='Packet-o-Matic real time network packet capture forensic tool'
pkgdesc+=' web interface addons'
arch=('i686' 'x86_64')
url='https://www.packet-o-matic.org/'
license=('GPL')
depends=('pom-ng')
makedepends=('git')
provides=("${_pkgname}=${pkgver%%.r*}")
conflicts=("${_pkgname}")
_srcdir="${pkgname^^}"
_giturl="https://github.com/gmsoft-tuxicoman/${_pkgname}"
# no releases yet
_verwatch=("${_giturl}/releases.atom" '\s\+<title>v\([0-9\.]\+\)</title>.*' 'f')
source=("${_srcdir}::git+${_giturl}.git")
md5sums=('SKIP')
sha256sums=('SKIP')

pkgver () {
  set -u
  cd "${_srcdir}"
  #git describe --long --tags | sed -e 's:^v::g' -e 's/\([^-]*-g\)/r\1/' -e 's/-/./g'
  printf '0.0.2.r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
  set +u
}

package() {
  set -u
  cd "${_srcdir}"
  install -Dpm644 * -t "${pkgdir}/usr/share/pom-ng/addons/"
  rm -f "${pkgdir}/usr/share/pom-ng/addons/README"
  set +u
}
set +u