blob: 2f5af4ebc282ce84a57b426da4cdb7db153718d6 (
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
|
# Maintainer: Kiwi42 <pullthisplug dash aur at yahoo dot com>
pkgname=threat-dragon-ng
pkgver=2.3.0
pkgrel=1
pkgdesc="Electron Threat Modelling and diagramming tool by Mike Goodwin @ OWASP"
arch=('x86_64')
url="https://owasp.org/www-project-threat-dragon/"
license=('Apache-2.0')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" owasp-threat-dragon)
depends=(alsa-lib cairo gtk3 hicolor-icon-theme libxkbcommon nspr nss pango)
options=(!debug)
source=("${pkgname}-${pkgver}.deb::https://github.com/OWASP/threat-dragon/releases/download/v${pkgver}/threat-dragon_${pkgver}_amd64.deb")
sha256sums=('d7e0f8cadb4baef9fec58be6a6fa0e996a659aaa0977f2233dfa368c4164e4d7')
package() {
# extract data from debian package
tar -xf data.tar.xz -C "${pkgdir}"
# fix icon
mkdir -p "${pkgdir}/usr/share/icons/hicolor/256x256/apps"
mv "${pkgdir}/usr/share/icons/hicolor/0x0/apps/threat-dragon.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/threat-dragon.png"
rm -r "${pkgdir}/usr/share/icons/hicolor/0x0"
# create symlink to executable
mkdir -p "${pkgdir}/usr/bin"
ln -s "/opt/Threat-Dragon-ng/threat-dragon" "${pkgdir}/usr/bin/threat-dragon"
}
|