diff options
author | caltlgin | 2020-11-18 15:57:07 +1300 |
---|---|---|
committer | caltlgin | 2020-11-18 15:57:07 +1300 |
commit | 077c4f151ae13c08ce903f8730d9fc4671f3fc9a (patch) | |
tree | 07e8caf9c50eced90b7130a524f4e55597b8ee4b | |
download | aur-077c4f151ae13c08ce903f8730d9fc4671f3fc9a.tar.gz |
Add to AUR
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3dc7528d5a21 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = qvge + pkgdesc = Qt Visual Graph Editor + pkgver = 0.6.1 + pkgrel = 1 + url = https://github.com/ArsMasiuk/qvge + arch = x86_64 + license = MIT + makedepends = imagemagick + makedepends = setconf + depends = hicolor-icon-theme + depends = qt5-svg + depends = qt5-x11extras + optdepends = graphviz: auto-layout of graphs + source = qvge-0.6.1.tar.gz::https://github.com/ArsMasiuk/qvge/archive/v0.6.1.tar.gz + sha256sums = cc782e8fc609d2035d84099cf3545765731208f5ad55c466ce5fbe1afb8510fb + +pkgname = qvge + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7a2427bd1ed7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +pkgname='qvge' +pkgver=0.6.1 +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=('cc782e8fc609d2035d84099cf3545765731208f5ad55c466ce5fbe1afb8510fb') + +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: |