blob: e5ae1f4458747abd8c64038a6b65613021f91cb9 (
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
|
# 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>
set -u
_pkgname='pom-ng-webui'
pkgname="${_pkgname}-git"
pkgver=0.0.2.r10.g83dcd23
pkgrel=1
pkgdesc='Packet-o-Matic real time network packet capture forensic tool'
pkgdesc+=' web interface'
arch=('i686' 'x86_64')
url='http://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}"
_verwatch=("${_giturl}/releases" "${_giturl#*github.com}/archive/v\(.*\)\.tar\.gz" 'l')
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'
set +u
}
package() {
set -u
cd "${_srcdir}"
install -d "${pkgdir}/usr/share/pom-ng/pom-ng-webui/"
rm -rf '.git' 'ChangeLog' 'README.md'
mv * "${pkgdir}/usr/share/pom-ng/pom-ng-webui/"
set +u
}
set +u
|