PKGBUILDs/community/sshfs/PKGBUILD

52 lines
1.5 KiB
Bash
Raw Normal View History

2017-07-09 15:24:49 +00:00
# $Id$
2017-09-22 23:14:58 +00:00
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
# Contributor: Antonio Rojas <arojas@archlinux.org>
2017-07-09 15:24:49 +00:00
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - use -D_FILE_OFFSET_BITS=64 with 32-bit ARM
pkgname=sshfs
2017-09-22 23:14:58 +00:00
pkgver=3.3.0
2017-10-02 07:17:04 +00:00
pkgrel=4
2017-07-09 15:24:49 +00:00
pkgdesc="FUSE client based on the SSH File Transfer Protocol"
arch=(x86_64 i686)
url="http://github.com/libfuse/sshfs"
license=(GPL)
depends=(fuse3 glib2 openssh)
2017-09-22 23:14:58 +00:00
makedepends=('meson' 'python-docutils')
2017-10-02 07:17:04 +00:00
source=(https://github.com/libfuse/sshfs/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz{,.asc}
001-sshfs-3.3.0-meson.build.patch
002-sshfs-3.3.0-sshfs.c.patch)
2017-09-22 23:14:58 +00:00
sha256sums=('9ddfcc2564fafe002706b093b6295afbcb2cc0a3bc52bc805cc5361cb69ca51d'
'SKIP'
2017-10-02 07:17:04 +00:00
'da928d31291ad86582ab616ea91619c345513dec00f6aafb5bac8f2929159e6b'
'2655139190ee5d2d295afc89a4ae028e78b881ecad9e03fcf9cd1869b2e4e439')
2017-07-09 15:24:49 +00:00
validpgpkeys=('ED31791B2C5C1613AF388B8AD113FCAC3C4E599F') # Nikolaus Rath <Nikolaus@rath.org>
prepare() {
2017-07-09 15:24:49 +00:00
cd $pkgname-$pkgver
# patch meson.build
patch -p1 < ../001-sshfs-3.3.0-meson.build.patch
2017-10-02 07:17:04 +00:00
# patch sshfs.c
patch -p1 < ../002-sshfs-3.3.0-sshfs.c.patch
2017-09-25 23:47:30 +00:00
[[ $CARCH == 'i686' || $CARCH == 'arm' || $CARCH == 'armv6h' || $CARCH == 'armv7h' ]] && export CFLAGS+=" -D_FILE_OFFSET_BITS=64"
2017-08-15 00:24:00 +00:00
rm -rf build
2017-10-02 07:17:04 +00:00
mkdir build
cd build
arch-meson ..
}
build() {
cd $pkgname-$pkgver/build
2017-08-15 00:24:00 +00:00
ninja
2017-07-09 15:24:49 +00:00
}
package() {
2017-08-15 00:24:00 +00:00
cd $pkgname-$pkgver/build
2017-07-09 15:24:49 +00:00
2017-08-15 00:24:00 +00:00
DESTDIR="$pkgdir" ninja install
2017-07-09 15:24:49 +00:00
}