summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gregoratto2020-01-12 13:52:41 +1100
committerStephen Gregoratto2020-01-12 13:52:41 +1100
commit70c8c70367cc9d64adc63ece9fdb41af7b512e7b (patch)
tree3fec6b5af71bf56e753b074fdc3b5ce9fb92c143
parent48fd21c619b904e054b6c25c7943ab9f516d3b96 (diff)
downloadaur-70c8c70367cc9d64adc63ece9fdb41af7b512e7b.tar.gz
update to 0.2.5, switch builds to use rust
lsvine was rewritten in rust as of 0.2.1. As such, the PKGBUILD has been rewritten to use rust package guidelines.
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD19
2 files changed, 21 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c0ed696c613..e599811f9cd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
pkgbase = lsvine
pkgdesc = List contents of directories in a vine-like format
- pkgver = 0.1.2
+ pkgver = 0.2.5
pkgrel = 1
url = https://github.com/autofitcloud/lsvine
- arch = any
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ arch = armv7h
license = APACHE
- makedepends = python-setuptools
- depends = python-click
- depends = python-pandas
- depends = python-tabulate
- depends = python-termcolor
- source = lsvine-0.1.2.tar.gz::https://github.com/autofitcloud/lsvine/archive/0.1.2.tar.gz
- sha256sums = a7b61292d25c6730308594a5177da8b97793f6e3d433802bb102bd53ee9db962
+ makedepends = cargo
+ depends = gcc-libs
+ source = lsvine-0.2.5.tar.gz::https://github.com/autofitcloud/lsvine/archive/0.2.5.tar.gz
+ sha512sums = 233be0e9dee138dc42561748a1c3d42640ec27b7d8cb937d7467ef6a268cdbd323e38321c37c5f9a31bd104ae8e665c49801585d719e72a37f3fbb62dfe3e075
pkgname = lsvine
diff --git a/PKGBUILD b/PKGBUILD
index 8aa8318650a..3a85d4fffec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,27 @@
# Maintainer: Stephen Gregoratto <dev@sgregoratto.me>
pkgname=lsvine
-pkgver=0.1.2
+pkgver=0.2.5
pkgrel=1
pkgdesc="List contents of directories in a vine-like format"
url=https://github.com/autofitcloud/lsvine
license=('APACHE')
-arch=('any')
-depends=('python-click' 'python-pandas' 'python-tabulate' 'python-termcolor')
-makedepends=('python-setuptools')
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+depends=('gcc-libs')
+makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha256sums=('a7b61292d25c6730308594a5177da8b97793f6e3d433802bb102bd53ee9db962')
+sha512sums=('233be0e9dee138dc42561748a1c3d42640ec27b7d8cb937d7467ef6a268cdbd323e38321c37c5f9a31bd104ae8e665c49801585d719e72a37f3fbb62dfe3e075')
build() {
cd "$pkgname-$pkgver"
- python setup.py build
+ cargo build --release --locked --all-features
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ cargo test --release --locked
}
package() {
cd "$pkgname-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm755 "target/release/lsvine" "$pkgdir/usr/bin/lsvine"
}