summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 243f96a7ee9600cce4c45ab265fc0f92b3b3326b (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
47
48
49
50
# Maintainer: Will Price <will.price94+aur@gmail.com>

pkgname=mediafire-fuse-git
pkgver=0.90.r20.gaa75530
pkgrel=1
pkgdesc="MediaFire shell and fuse driver"
arch=('i686' 'x86_64' 'armv6' 'armv7')
url="https://github.com/MediaFire/mediafire-fuse"
license=('GPL2')
groups=()
depends=('fuse' 'jansson' 'curl')
makedepends=('git')
provides=('mediafire-shell' 'mediafire-fuse')
conflicts=()
replaces=()
backup=()
options=()
source=('git+https://github.com/MediaFire/mediafire-fuse.git'
        fix_build.patch)
md5sums=('SKIP'
        '7f01552057bf5545535f48217f0feb07')

pkgver() {
    cd "$srcdir/${pkgname%%-git}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd "${pkgname%%-git}"
    patch --forward --strip=1 --input="${srcdir}/fix_build.patch"
    sed -i 's/\-Werror//' CMakeLists.txt
}

build() {
  cd "$srcdir/${pkgname%%-git}"
  mkdir -p build
  cd build
  cmake .. \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    -DCMAKE_INSTALL_LIBDIR="/usr/lib"

  make
}

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

# vim:set ts=2 sw=2 et: