summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 977372fdb8a0dbfcb3e7afad3a5007b524d16ba6 (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
# Maintainer: Philipp 'TamCore' B. <philipp [at] tamcore [dot] eu>
pkgname=jmtpfs
pkgver=0.5
pkgrel=2
license=('GPL3')
pkgdesc="mtpfs with better support for Android"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="http://research.jacquette.com/jmtpfs-exchanging-files-between-android-devices-and-linux/"
depends=('fuse' 'libmtp')
source=("https://github.com/JasonFerrara/jmtpfs/archive/v${pkgver}.tar.gz")
sha256sums=('c0cacc4751c586a3b2b0fcd9c98dae4810a5d44f3eb9d2870868a15eeb696883')

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

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install

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