summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5efaaccb752b19e8e0d7930e18fa1cad7c6c7779 (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
# Maintainer: Michele Spagnuolo <mikispag@gmail.com>

pkgname=jmtpfs
pkgver=0.5
pkgrel=3
license=('GPL3')
pkgdesc='FUSE and libmtp based filesystem for accessing MTP (Media Transfer Protocol) devices'
arch=('x86_64' 'armv7h')
url=https://github.com/JasonFerrara/jmtpfs
depends=('fuse' 'libmtp')
source=("$url/archive/v$pkgver/jmtpfs-v$pkgver.tar.gz")
sha512sums=('1997d202199af59ae2138701855864e4dab624fff4feac08ea98e3e4ed6c39e4181d8f9fec35db0e83570f48de204f3d00e1b0d2244ec677f77a99b1dc9c38b3')

build() {
  cd jmtpfs-$pkgver
  ./configure CXXFLAGS=-lpthread --prefix=/usr
  make
}

package() {
  cd jmtpfs-$pkgver
  make DESTDIR="$pkgdir" install

  ln -s jmtpfs "$pkgdir"/usr/bin/mount.jmtpfs
  ln -s jmtpfs "$pkgdir"/usr/bin/mount.fuse.jmtpfs
}