blob: 64ec5ab6320249f2eb0f1e659ca73d10cc38121b (
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: Axel Gembe <derago@gmail.com>
pkgname=plexdrive-git
_pkgname=${pkgname/-git/}
pkgver=5.1.0.r0.g65ff5d4
pkgrel=1
pkgdesc='Plexdrive allows you to mount your Google Drive account as read-only fuse filesystem, with direct delete option on the filesystem.'
arch=('any')
url='https://github.com/dweidenfeld/plexdrive'
license=('MIT')
depends=('fuse')
makedepends=(
'go'
'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'
}
prepare() {
mkdir -p gopath/src/github.com/dweidenfeld
ln -rTsf $pkgname gopath/src/github.com/dweidenfeld/$pkgname
export GOPATH="$srcdir"/gopath
cd gopath/src/github.com/dweidenfeld/$pkgname
go get -v
}
build() {
export GOPATH="$srcdir"/gopath
cd gopath/src/github.com/dweidenfeld/$pkgname
go build \
-trimpath \
-o $_pkgname \
.
}
package() {
cd "$pkgname"
install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname
}
|