summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1029911abe84e53369b136f5fefa9559c892d5cd (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
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: Philipp 'TamCore' B. <philipp [at] tamcore [dot] eu>

pkgname=jmtpfs
pkgver=0.5
pkgrel=2
license=('GPL3')
pkgdesc='FUSE and libmtp based filesystem for accessing MTP (Media Transfer Protocol) devices'
arch=('x86_64')
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
}