Autogenerated commit at 2024-09-27 14:24:54.886723+00:00

This commit is contained in:
ahriman
2024-09-27 14:24:54 +00:00
parent 661d4328a2
commit eeaaa9e53e
10 changed files with 193 additions and 5 deletions

21
yed/.SRCINFO Normal file
View File

@ -0,0 +1,21 @@
pkgbase = yed
pkgdesc = Very powerful graph editor written in java
pkgver = 3.24
pkgrel = 1
epoch = 1
url = http://www.yworks.com/en/products_yed_about.html
install = yed.install
arch = any
license = custom
depends = hicolor-icon-theme
depends = java-runtime
source = https://www.yworks.com/resources/yed/demo/yEd-3.24.zip
source = yed.desktop
source = yed
source = graphml+xml-mime.xml
sha256sums = 842909f6e4c15399b660f316056499e63e931f95ade43d850045d852d3128947
sha256sums = cc6957cde6eba0d82ea523b0257f8c91fd1e330a1e2ad7d64890e48a2450aa98
sha256sums = 731b54c6e731704efe9847d78e2df474d59042452ace29d2786d76891295249e
sha256sums = e751b69ed8a25faf46d4e4016ed8f1774abc88679067934a6081348e3d6fc332
pkgname = yed

54
yed/PKGBUILD Normal file
View File

@ -0,0 +1,54 @@
# Maintainer: Michael Lass <bevan@bi-co.net>
# Contributor: Sebastian Wolf < sebastian at melonkru dot de >
# Contributor: gost < gostrc at gmail dot com >
# Contributor: Mikolaj Pastuszko <deluminathor@gmail.com>
# Contributor: Stefan Seemayer < mail at semicolonsoftware dot de >
# Contributor: Gordin < 9ordin @t gmail dot com >
# Contributor: David Davis < davisd<a@t>davisd.com >
# This PKGBUILD is maintained on github:
# https://github.com/michaellass/AUR
pkgname=yed
pkgver=3.24
pkgrel=1
epoch=1
pkgdesc='Very powerful graph editor written in java'
arch=('any')
url='http://www.yworks.com/en/products_yed_about.html'
license=('custom')
depends=('hicolor-icon-theme' 'java-runtime')
source=("https://www.yworks.com/resources/yed/demo/yEd-${pkgver}.zip"
'yed.desktop'
'yed'
'graphml+xml-mime.xml')
sha256sums=('842909f6e4c15399b660f316056499e63e931f95ade43d850045d852d3128947'
'cc6957cde6eba0d82ea523b0257f8c91fd1e330a1e2ad7d64890e48a2450aa98'
'731b54c6e731704efe9847d78e2df474d59042452ace29d2786d76891295249e'
'e751b69ed8a25faf46d4e4016ed8f1774abc88679067934a6081348e3d6fc332')
install=yed.install
package() {
# Install jars
install -Dm644 ${srcdir}/yed-${pkgver}/yed.jar ${pkgdir}/usr/share/java/yed/yed.jar
install -dm755 ${pkgdir}/usr/share/java/yed/lib
install -m644 ${srcdir}/yed-${pkgver}/lib/* ${pkgdir}/usr/share/java/yed/lib/
# Install license
install -Dm644 ${srcdir}/yed-${pkgver}/license.html ${pkgdir}/usr/share/licenses/yed/license.html
# Install icons
for n in $(ls ${srcdir}/yed-${pkgver}/icons/yed*.png | xargs -n1 basename | sed s/[^0-9]//g); do
install -Dm644 ${srcdir}/yed-${pkgver}/icons/yed${n}.png ${pkgdir}/usr/share/icons/hicolor/${n}x${n}/apps/yed.png
done
# Install mime definition
install -Dm644 ${srcdir}/graphml+xml-mime.xml ${pkgdir}/usr/share/mime/packages/graphml+xml-mime.xml
# Install .desktop file
install -Dm644 ${srcdir}/yed.desktop ${pkgdir}/usr/share/applications/yed.desktop
# Install run script
install -Dm755 ${srcdir}/yed ${pkgdir}/usr/bin/yed
}

8
yed/graphml+xml-mime.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-graphml+xml">
<comment>yEd graphml file (xml format)</comment>
<glob pattern="*.graphml"/>
<generic-icon name="x-application-graphml+xml"/>
</mime-type>
</mime-info>

3
yed/yed Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/usr/bin/java -jar /usr/share/java/yed/yed.jar "$@"

9
yed/yed.desktop Normal file
View File

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Icon=yed
Exec=yed %f
StartupNotify=true
StartupWMClass=com-yworks-A-yEd
Name=yEd Graph Editor
MimeType=application/x-graphml+xml;
Categories=Application;Graphics;VectorGraphics;Java;

13
yed/yed.install Normal file
View File

@ -0,0 +1,13 @@
post_upgrade() {
post_install $1
}
post_install() {
echo ">>> You have to read and accept the license agreement under"
echo ">>> /usr/share/licenses/yed/license.html before using yEd."
}
op=$1
shift
$op $*