summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman2018-12-05 14:08:37 +0200
committerRoman2018-12-05 14:10:25 +0200
commitca3375e3186b5e2d93fbabda3012a166c7627696 (patch)
tree606095e136e88577716e71649081affe67c55a73
parent9b1335a2b09aee2989fa3998e2147f5980ff8f8b (diff)
downloadaur-ca3375e3186b5e2d93fbabda3012a166c7627696.tar.gz
Use prebuilt .desktop files
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD15
-rw-r--r--filebot-license.desktop11
-rw-r--r--filebot.desktop10
4 files changed, 35 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f6a3c4956911..875e6498c659 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = filebot-git
pkgdesc = The ultimate TV and Movie Renamer
pkgver = 4.8.5.20181202
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/filebot/filebot
install = filebot.install
arch = i686
@@ -26,8 +26,12 @@ pkgbase = filebot-git
conflicts = filebot
source = filebot::git+https://github.com/filebot/filebot.git
source = filebot-arch.sh
+ source = filebot.desktop
+ source = filebot-license.desktop
md5sums = SKIP
md5sums = a1f708b2a17a1a548f910ea0c53a9f54
+ md5sums = 8cea85b074146c6057913488a1247fd8
+ md5sums = b49cf931217ed3cfbc8be1cf3133d7e0
pkgname = filebot-git
diff --git a/PKGBUILD b/PKGBUILD
index 2b2fddc3ec23..2e875bb9bca3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ pkgname=filebot-git
_pkgname=filebot
pkgver=4.8.5.20181202
_pkgver=4.8.5
-pkgrel=1
+pkgrel=2
pkgdesc="The ultimate TV and Movie Renamer"
_jnaver=4.5.2
_fixedcommit=f6efdbced839f96f9685640345b2e4eee30f61b6
@@ -35,11 +35,14 @@ source=("${_pkgname}::git+https://github.com/filebot/filebot.git"
#https://github.com/java-native-access/jna/archive/$_jnaver.tar.gz
$_pkgname-arch.sh
#$_pkgname.svg
- #$_pkgname.desktop
+ filebot.desktop
+ filebot-license.desktop
)
md5sums=('SKIP'
- 'a1f708b2a17a1a548f910ea0c53a9f54')
+ 'a1f708b2a17a1a548f910ea0c53a9f54'
+ '8cea85b074146c6057913488a1247fd8'
+ 'b49cf931217ed3cfbc8be1cf3133d7e0')
optdepends=('libzen: Required by libmediainfo'
'libmediainfo: Read media info such as video codec, resolution or duration'
@@ -99,13 +102,13 @@ package() {
install -Dm755 $_pkgname-arch.sh "$pkgdir/usr/bin/$_pkgname"
+ # copy .desktop files
+ cp -dpr --no-preserve=ownership *.desktop "$pkgdir/usr/share/applications/"
+
# install -Dm644 $_pkgname.desktop "$pkgdir/usr/share/applications/$_pkgname.desktop"
cd "$srcdir/$_pkgname/"
- # copy .desktop files
- cp -dpr --no-preserve=ownership installer/deb/share/applications/* "$pkgdir/usr/share/applications/"
-
# copy MIME types
cp -dpr --no-preserve=ownership installer/deb/share/mime "$pkgdir/usr/share/mime"
sed -i "s/@{license.mimetype}/application\/x-filebot-license/g; s/@{license.description}/FileBot License File/g; s/@{package.name}/$_pkgname/g; s/@{license.extension}/psm/g" $pkgdir/usr/share/mime/packages/$_pkgname.xml
diff --git a/filebot-license.desktop b/filebot-license.desktop
new file mode 100644
index 000000000000..7614724cbf47
--- /dev/null
+++ b/filebot-license.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=FileBot License
+Comment=Import FileBot License File
+Exec=filebot --license %F
+Icon=filebot
+Terminal=false
+StartupNotify=true
+Categories=AudioVideo;Video;Utility;FileTools;
+MimeType=application/x-psm;application/x-filebot-license;
+NoDisplay=true
diff --git a/filebot.desktop b/filebot.desktop
new file mode 100644
index 000000000000..6c8dc559ccdf
--- /dev/null
+++ b/filebot.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=FileBot
+Comment=The ultimate TV and Movie Renamer
+Exec=filebot %F
+Icon=filebot
+Terminal=false
+StartupNotify=true
+Categories=AudioVideo;Video;Utility;FileTools;
+MimeType=inode/directory;video/*;audio/*;text/*;application/*;