blob: 3c192deed2acc6200ff392271abe99b722f5a6b4 (
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
|
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
pkgname=qvge
pkgver=0.6.3
pkgrel=1
pkgdesc='Qt Visual Graph Editor'
arch=('x86_64')
url='https://github.com/ArsMasiuk/qvge'
license=('MIT')
depends=('hicolor-icon-theme' 'qt5-svg' 'qt5-x11extras')
makedepends=('imagemagick' 'setconf')
optdepends=('graphviz: auto-layout of graphs')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('034e5ba6cb9a3b67d51815190aae06406fc5ba1ddeb3271fe1c67b7e577657c3')
build() {
cd "${pkgname}-${pkgver}/src"
qmake-qt5 -r
make
}
package() {
cd "${pkgname}-${pkgver}"
install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
for i in 16 22 24 32 48 64 96 128 256; do
convert 'icon.png' -resize "${i}x${i}" "${srcdir}/icon${i}.png"
install -Dvm644 "${srcdir}/icon${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"
done
install -Dvm755 "src/bin/${pkgname}app" -t "${pkgdir}/usr/bin"
cd "src/${pkgname}app/linux"
setconf -u "${pkgname}.desktop" 'Icon' "${pkgname}"
install -Dvm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dvm644 "${pkgname}.appdata.xml" -t "${pkgdir}/usr/share/metainfo"
install -Dvm644 'application-xgr.xml' -t "${pkgdir}/usr/share/mime/application"
}
# vim: ts=2 sw=2 et:
|