summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD38
-rw-r--r--corastool.desktop11
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9b895329587
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = corastool
+ pkgdesc = Editor for the family of CORAS security analysis diagrams.
+ pkgver = 1.4
+ pkgrel = 1
+ url = http://coras.sourceforge.net/coras_tool.html
+ arch = x86_64
+ license = unknown
+ depends = bash
+ source = corastool-1.4.zip::http://downloads.sourceforge.net/project/coras/CorasTool/corastool_v1.4_non_windows.zip?r=http%3A%2F%2Fcoras.sourceforge.net%2Fdownloads.html&ts=1475586617&use_mirror=netix
+ source = corastool.desktop
+ sha512sums = c8ae31e971996d68d6922ff928699bad6425d6920c9423ef446779aedb3f61b9f4a440ad70917bf70ef6270ec0b7883a7b6add1338456f71a536b6fbe2952206
+ sha512sums = c6faeeb6fba3661407d3536c821d6b508ac8cc53168fbd14266b45f4a989da2030d6dced5c716ebc80a25e418d969599e478f06cd47988372808a80a8261fa01
+
+pkgname = corastool
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b617be2fb66
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Bennett Piater <bennett at piater dot name>
+
+_watch="https://sourceforge.net/p/coras/activity/feed?source=project_activity"
+
+pkgname='corastool'
+pkgver='1.4'
+pkgrel=1
+pkgdesc="Editor for the family of CORAS security analysis diagrams."
+arch=('x86_64') # Too lazy for i686
+url="http://coras.sourceforge.net/coras_tool.html"
+license=('unknown')
+
+depends=('bash')
+source=("$pkgname-$pkgver.zip::http://downloads.sourceforge.net/project/coras/CorasTool/corastool_v${pkgver}_non_windows.zip?r=http%3A%2F%2Fcoras.sourceforge.net%2Fdownloads.html&ts=1475586617&use_mirror=netix"
+ "$pkgname.desktop"
+)
+sha512sums=('c8ae31e971996d68d6922ff928699bad6425d6920c9423ef446779aedb3f61b9f4a440ad70917bf70ef6270ec0b7883a7b6add1338456f71a536b6fbe2952206'
+ 'c6faeeb6fba3661407d3536c821d6b508ac8cc53168fbd14266b45f4a989da2030d6dced5c716ebc80a25e418d969599e478f06cd47988372808a80a8261fa01')
+
+package() {
+ cd "$srcdir/${pkgname}_v${pkgver}_non_windows"
+
+ # Copy files to system
+ mkdir -p "$pkgdir/usr/share/java/$pkgname/"
+ cp -r linux.gtk.x86_64 repository "$pkgdir/usr/share/java/$pkgname/"
+
+ mkdir -p "$pkgdir/usr/bin"
+ chmod 755 "$pkgdir/usr/share/java/$pkgname/linux.gtk.x86_64/eclipse/eclipse"
+ ln -sr "$pkgdir/usr/share/java/$pkgname/linux.gtk.x86_64/eclipse/eclipse" "$pkgdir/usr/bin/$pkgname"
+
+ # Copy the licence
+ #install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" license.txt
+
+ # Copy the desktop file and image
+ cd "$srcdir"
+ install -Dm644 -t "$pkgdir/usr/share/applications/" *.desktop
+ #install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
+}
diff --git a/corastool.desktop b/corastool.desktop
new file mode 100644
index 00000000000..3f84db31fda
--- /dev/null
+++ b/corastool.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Coras Tool
+Comment=Editor for the CORAS security analysis diagrams
+#Path=/usr/share/java/battlescribe
+Exec=/usr/bin/corastool
+#Icon=battlescribe
+Terminal=false
+Categories=Development;Java;
+X-Desktop-File-Install-Version=0.22