diff options
author | axionl | 2018-07-02 23:28:23 +0800 |
---|---|---|
committer | axionl | 2018-07-02 23:28:23 +0800 |
commit | 574f923f45e2e633eb73134cfdf96bf252c812bf (patch) | |
tree | 2dd92dab2932ce226dc5214d19a05e734903879f | |
download | aur-574f923f45e2e633eb73134cfdf96bf252c812bf.tar.gz |
Add this package
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2d3e091d285f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = gcsf-git + pkgdesc = a FUSE file system based on Google Drive (Written by Rust) + pkgver = r139.ac09234 + pkgrel = 1 + url = https://github.com/harababurel/gcsf + arch = x86_64 + license = MIT + makedepends = git + makedepends = rust + depends = fuse2 + depends = gcc-libs + optdepends = ranger: A simple, vim-like file manager + provides = gcsf + conflicts = gcsf + source = gcsf-git::git+https://github.com/harababurel/gcsf.git + sha256sums = SKIP + +pkgname = gcsf-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eb8f0e1fe9c8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Ariel AxionL <axionl@aosc.io> +pkgname=gcsf-git +pkgver=r139.ac09234 +pkgrel=1 +pkgdesc="a FUSE file system based on Google Drive (Written by Rust)" +arch=('x86_64') +depends=('fuse2' 'gcc-libs') +makedepends=('git' 'rust') +optdepends=("ranger: A simple, vim-like file manager") +conflicts=("gcsf") +provides=("gcsf") +url="https://github.com/harababurel/gcsf" +license=('MIT') + +source=("$pkgname::git+$url.git") + +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $pkgname + cargo fmt --all -- --write-mode=diff + cargo build --release +} + +package() { + cd $srcdir/$pkgname + + # License + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + + # Binaries + install -Dm755 target/release/gcsf $pkgdir/usr/bin/gcsf +} +# vim set: ts=4 sw=4 et
\ No newline at end of file |