summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5956a4de50027f944855bf2890f55c92ff7e48b (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
# Maintainer: Drew S. Ortega <orvyx@protonmail.com>
pkgname=brim
pkgver=0.28.0
pkgrel=1
pkgdesc="Desktop application to efficiently search large packet captures and Zeek logs."
arch=('x86_64')
url="https://www.brimsecurity.com/download/"
license=('custom')
depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'at-spi2-core' 'glib2')
optdepends=('lsb-release' 'libgnome-keyring' 'pulseaudio')
source=("https://github.com/brimdata/brim/releases/download/v${pkgver}/${pkgname}-${pkgver}.deb"
"https://raw.githubusercontent.com/brimdata/brim/v${pkgver}/LICENSE.txt"
)
noextract=("${pkgname}-${pkgver}.deb")
sha256sums=('a743e779bc4fa12d731558cb7bd6ebaabd5f8c92b108c554f41cda3147f3ef3f'
            'a8b360eb5a0cf91c98f39fd4259d09263d883222a8be42b0ee77ad80937e86ac')

package() {
        # extract to pkgdir
        bsdtar -O -xf "${pkgname}-${pkgver}.deb" data.tar.xz | bsdtar -C "${pkgdir}" -xJf -

        # remove debian-specific files
        rm -rf "${pkgdir}/usr/share/lintian"

        # install LICENSE.txt
        install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
        install "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}"
}