summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6798a70d68d815afbccaa2b5cf709d55421a0ac9 (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
# Maintainer:

_pkgname="simple-mtpfs"
pkgname="$_pkgname-git"
_srcname='simple-mtpfs'
pkgver=0.4.0.r2.g5dfd25c
pkgrel=1
pkgdesc="A FUSE filesystem that supports reading/writing from MTP devices"
url="https://github.com/phatina/simple-mtpfs"
license=('GPL-2.0-or-later')
arch=('x86_64' 'i686')

depends=(
  'libmtp'
  'fuse'
  #'gcc-libs'
)
makedepends=(
  'autoconf-archive'
  'git'
)

provides=("$_pkgname")
conflicts=("$_pkgname")

_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
    | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgsrc"
  autoreconf --install --force --warnings='all'
  ./configure --prefix='/usr'
  make
}

package() {
  cd "$_pkgsrc"
  make DESTDIR="${pkgdir}" install
}