diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 6 |
3 files changed, 7 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = gdrive-search pkgdesc = A TUI to quickly find files in your Google Drive pkgver = 0.1.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/jalada/gdrive-search arch = x86_64 license = GPL3 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b43bf86b50fd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +README.md @@ -1,7 +1,7 @@ # Maintainer: David Somers <red.zone7953@jalada.co.uk> pkgname=gdrive-search pkgver=0.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="A TUI to quickly find files in your Google Drive" arch=(x86_64) url="https://github.com/jalada/gdrive-search" @@ -12,21 +12,25 @@ source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgn sha512sums=('961bc9ce07f37c4cdd6dcf3451b316270f78841273345be103a0ed295022ddf6df057df6c0870997f0085d0db95844965eddee225beea38c2bde849667ff43e1') prepare() { + cd $pkgname-$pkgver cargo fetch --locked --target $CARCH-unknown-linux-gnu } build() { export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target + cd $pkgname-$pkgver cargo build --release --frozen --all-features } check() { # For now gdrive-search has no tests export RUSTUP_TOOLCHAIN=stable + cd $pkgname-$pkgver cargo test --frozen --all-features } package() { + cd $pkgname-$pkgver install -Dm0755 -t "$pkgdir/usr/bin" target/release/$pkgname } |