summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 869b98418891bd8706d48c969c5183dc38f54ea0 (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
# Maintainer: FraV1982 <consulenza.vangi@libero.it>

pkgname=filezilla-server
pkgver=1.5.1
pkgrel=1
pkgdesc="A simple FTP, FTPS or SFTP server for ArchLinux."
arch=('x86_64')
url="https://filezilla-project.org/download.php?type=server"
license=('unknown')

options=(!strip)

_debname=FileZilla_Server_1.5.1_x86_64-linux-gnu.deb

source=(https://dl3.cdn.filezilla-project.org/server/FileZilla_Server_1.5.1_x86_64-linux-gnu.deb)

prepare() {
  cd "$srcdir"
  msg2 "Decompressing Debian package..."
  ar xv "${_debname}" > /dev/null
  tar -xf data.tar.xz > /dev/null

  #find ./{etc,usr} -type d -exec chmod 755 '{}' \;
  find ./usr -type d -exec chmod 755 '{}' \;
  chmod 755 ./usr/local/bin/filezilla/filezilla-server
}

package() {
  cd "$srcdir"
  #cp -dpr --no-preserve=ownership {opt,usr} "$pkgdir"
  cp -dpr --no-preserve=ownership ./usr "$pkgdir"
}