summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76fa245deaa87295ecf07bedb6962c9288364fbb (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
# Maintainer: Axel Gembe <derago@gmail.com>
pkgname='plexdrive-git'
_pkgname=${pkgname/-git/}
pkgdesc='Plexdrive allows you to mount your Google Drive account as read-only fuse filesystem'
pkgver=5.0.0.r18.gbf61a47
pkgrel=2
url='https://github.com/dweidenfeld/plexdrive'
arch=('any')
license=('MIT')
depends=('fuse')
makedepends=(
  'go-pie'
  'git'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$pkgname::git+https://github.com/dweidenfeld/plexdrive.git")
sha256sums=('SKIP')

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

build() {
  cd "$pkgname"
  go build \
    -gcflags "all=-trimpath=$PWD" \
    -asmflags "all=-trimpath=$PWD" \
    -ldflags "-extldflags $LDFLAGS" \
    -o $_pkgname .
}

package() {
  cd "$pkgname"
  install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname
}