summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2868d5ff9214da571dd3c3088840db8ed7235df (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
40
41
42
43
44
45
46
47
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=lftp-git
pkgver=4.9.2.r18.ge0e0ebcd
pkgrel=1
pkgdesc="Sophisticated file transfer program"
arch=('i686' 'x86_64')
url="https://lftp.yar.ru/"
license=('GPL3')
depends=('expat' 'gnutls' 'hicolor-icon-theme' 'libidn2' 'readline')
makedepends=('git' 'gperf')
optdepends=('perl' 'sh')
provides=("lftp=$pkgver")
conflicts=('lftp')
backup=('etc/lftp.conf')
source=("git+https://github.com/lavv17/lftp.git")
sha256sums=('SKIP')


pkgver() {
  cd "lftp"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "lftp"

  ./bootstrap
  ./configure \
    --prefix="/usr" \
    --disable-static
  make
}

check() {
  cd "lftp"

  make check
}

package() {
  cd "lftp"

  make DESTDIR="$pkgdir" install
  rm -rf "$pkgdir/usr/lib"
}