summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD10
-rw-r--r--gcs.desktop3
-rw-r--r--gcs.xml33
4 files changed, 47 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5450c256fac5..24d64ea30d25 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,9 +9,11 @@ pkgbase = gcs
source = http://gurpscharactersheet.com/downloads/4.5.1/gcs-4.5.1-linux.zip
source = gcs.sh
source = gcs.desktop
- sha256sums = SKIP
+ source = gcs.xml
+ sha256sums = 8a7c4fabc6ae7ec53a9b5981f6a29489c42ce5ef94733fe92460421ae4a1efe8
sha256sums = 25042c6759fd814e23bf9139e6f6c5f93f67eec826f55825db052f4ff84ce241
- sha256sums = 15f4bb0caaa0752cceba69c615e16848eba35f18b4d705caae0419a2aa0072f9
+ sha256sums = 5b226260250972c1244f11be73c98bf43d3f30f428843c823c5a8a0ba01494ba
+ sha256sums = cddee2d3b844dddd3a346a7c15c26f76019c875cccc03b0be34489c4dd71a320
pkgname = gcs
diff --git a/PKGBUILD b/PKGBUILD
index 8d2b22f0e7ae..5685340dd483 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,11 +12,13 @@ source=(
"http://gurpscharactersheet.com/downloads/$pkgver/$pkgname-$pkgver-linux.zip"
'gcs.sh'
'gcs.desktop'
+ 'gcs.xml'
)
sha256sums=(
'8a7c4fabc6ae7ec53a9b5981f6a29489c42ce5ef94733fe92460421ae4a1efe8'
'25042c6759fd814e23bf9139e6f6c5f93f67eec826f55825db052f4ff84ce241'
- '15f4bb0caaa0752cceba69c615e16848eba35f18b4d705caae0419a2aa0072f9'
+ '5b226260250972c1244f11be73c98bf43d3f30f428843c823c5a8a0ba01494ba'
+ 'cddee2d3b844dddd3a346a7c15c26f76019c875cccc03b0be34489c4dd71a320'
)
package() {
@@ -32,13 +34,17 @@ package() {
# icon
install -d "$pkgdir/usr/share/icons/hicolor/128x128/apps"
- convert support/gcs.png -resize 128 "$pkgdir/usr/share/icons/hicolor/128x128/apps/gcs.png"
+ install -m644 support/gcs.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/gcs.png"
popd
# launcher
install -Dm755 "$srcdir/gcs.sh" "$pkgdir/usr/bin/gcs"
+ # MIME info
+ install -d "$pkgdir/usr/share/mime/packages"
+ install -m644 "$srcdir/gcs.xml" "$pkgdir/usr/share/mime/packages"
+
# .desktop
install -d "$pkgdir/usr/share/applications"
install -m644 "$srcdir/gcs.desktop" "$pkgdir/usr/share/applications"
diff --git a/gcs.desktop b/gcs.desktop
index d73b0ce5a707..65962bbb5fb0 100644
--- a/gcs.desktop
+++ b/gcs.desktop
@@ -2,7 +2,8 @@
Version=1.0
Type=Application
Name=GURPS Character Sheet
-Icon=gcs
Exec=/usr/bin/gcs %F
+Icon=gcs
+MimeType=application/x-gurps-advantage;application/x-gurps-equipment;application/x-gurps-character;application/x-gurps-template;application/x-gurps-skill;application/x-gurps-spell;
Categories=Game;RolePlaying;Utility;
Keywords=Roleplaying;
diff --git a/gcs.xml b/gcs.xml
new file mode 100644
index 000000000000..acbcebe1e4bc
--- /dev/null
+++ b/gcs.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-gurps-advantage">
+ <sub-class-of type="text/xml"/>
+ <comment>GURPS advantage list</comment>
+ <glob pattern="*.adq"/>
+ </mime-type>
+ <mime-type type="application/x-gurps-equipment">
+ <sub-class-of type="text/xml"/>
+ <comment>GURPS equipment list</comment>
+ <glob pattern="*.eqp"/>
+ </mime-type>
+ <mime-type type="application/x-gurps-character">
+ <sub-class-of type="text/xml"/>
+ <comment>GURPS character sheet</comment>
+ <glob pattern="*.gcs"/>
+ </mime-type>
+ <mime-type type="application/x-gurps-template">
+ <sub-class-of type="text/xml"/>
+ <comment>GURPS character template</comment>
+ <glob pattern="*.gct"/>
+ </mime-type>
+ <mime-type type="application/x-gurps-skill">
+ <sub-class-of type="text/xml"/>
+ <comment>GURPS skill list</comment>
+ <glob pattern="*.skl"/>
+ </mime-type>
+ <mime-type type="application/x-gurps-spell">
+ <sub-class-of type="text/xml"/>
+ <comment>GURPS spell list</comment>
+ <glob pattern="*.spl" weight="55"/>
+ </mime-type>
+</mime-info>