summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Mattern2016-06-27 23:31:04 +0200
committerPeter Mattern2016-06-27 23:32:53 +0200
commit5c98b118efb7699359943015e4015f03805ef4c2 (patch)
treebb3849ddb04123b1050a12bbb6b2c6992bf56240
parentfa056ec6af927894466f537dffc16fde5bb7429b (diff)
downloadaur-5c98b118efb7699359943015e4015f03805ef4c2.tar.gz
Use pacman hooks, complement desktop entry file with key MimeType
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD23
-rw-r--r--filezilla-svn.install11
3 files changed, 16 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 854c12d32d57..7dc4b4364364 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,10 @@
# Generated by mksrcinfo v8
-# Wed Jan 13 11:52:16 UTC 2016
+# Mon Jun 27 20:35:50 UTC 2016
pkgbase = filezilla-svn
pkgdesc = Free, open source FTP, FTPS and SFTP client
- pkgver = 7250
+ pkgver = 7603
pkgrel = 1
url = https://filezilla-project.org
- install = filezilla-svn.install
arch = i686
arch = x86_64
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index cd543f429575..c3b5fec746d6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,23 +2,28 @@
_pkgname=filezilla
pkgname=$_pkgname-svn
-pkgver=7250
+pkgver=7603
pkgrel=1
-pkgdesc="Free, open source FTP, FTPS and SFTP client"
-arch=("i686" "x86_64")
-url="https://filezilla-project.org"
-license=("GPL")
-depends=("libfilezilla" "pugixml" "wxgtk" "xdg-utils")
-makedepends=("subversion")
+pkgdesc='Free, open source FTP, FTPS and SFTP client'
+arch=('i686' 'x86_64')
+url='https://filezilla-project.org'
+license=('GPL')
+depends=('libfilezilla' 'pugixml' 'wxgtk' 'xdg-utils')
+makedepends=('subversion')
provides=("$_pkgname")
conflicts=("$_pkgname")
-install=$pkgname.install
source=("$_pkgname::svn+https://svn.filezilla-project.org/svn/FileZilla3/trunk")
sha256sums=("SKIP")
+prepare() {
+ # Complement desktop entry file with key MimeTypes, https://trac.filezilla-project.org/ticket/10724
+ cd $_pkgname/data/
+ grep --quiet MimeType filezilla.desktop || echo 'MimeType=x-scheme-handler/ftp;' >> filezilla.desktop
+}
+
pkgver() {
cd $_pkgname
- svnversion
+ svnversion | sed 's:M$::'
}
build() {
diff --git a/filezilla-svn.install b/filezilla-svn.install
deleted file mode 100644
index 272ceaacbab4..000000000000
--- a/filezilla-svn.install
+++ /dev/null
@@ -1,11 +0,0 @@
-post_install() {
- gtk-update-icon-cache -f /usr/share/icons/hicolor
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}