diff options
author | Peter Mattern | 2016-06-27 23:31:04 +0200 |
---|---|---|
committer | Peter Mattern | 2016-06-27 23:32:53 +0200 |
commit | 5c98b118efb7699359943015e4015f03805ef4c2 (patch) | |
tree | bb3849ddb04123b1050a12bbb6b2c6992bf56240 | |
parent | fa056ec6af927894466f537dffc16fde5bb7429b (diff) | |
download | aur-5c98b118efb7699359943015e4015f03805ef4c2.tar.gz |
Use pacman hooks, complement desktop entry file with key MimeType
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | filezilla-svn.install | 11 |
3 files changed, 16 insertions, 23 deletions
@@ -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 @@ -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 -} |