summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9c834efaef2115bee55433def62b6b63c93ab10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer:  Peter Mattern <pmattern at arcor dot de>

_pkgname=filezilla
pkgname=$_pkgname-svn
pkgver=9847
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' 'wxgtk3' 'xdg-utils')
makedepends=('subversion')
provides=("$_pkgname")
conflicts=("$_pkgname")
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 | sed 's:M$::'
}

build() {
    cd $_pkgname
    autoreconf -i
    ./configure --prefix=/usr --with-wx-config=/usr/bin/wx-config-gtk3
    make
}

package() {
    cd $_pkgname
    make DESTDIR=$pkgdir install
}