summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authororhun2020-10-25 22:48:57 +0300
committerorhun2020-10-25 22:48:57 +0300
commite706d9cf6d6da312e6ffa8e62fd8e88e63f50179 (patch)
tree877d65c134ebc3d0db800bd98515e3b27f6f0ea7
parent7c5b91d5a4e44cb5d82a45266d36b22a3b4cac24 (diff)
downloadaur-e706d9cf6d6da312e6ffa8e62fd8e88e63f50179.tar.gz
upgpkg: silver-git 1.1.0.r51.gb25b7a0-1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD40
2 files changed, 33 insertions, 24 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6bdebab1447..5cc5873b9c9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,16 @@
pkgbase = silver-git
- pkgdesc = A cross-shell customizable powerline-like prompt with icons
- pkgver = v1.1.0
- pkgrel = 3
- arch = i686
+ pkgdesc = A cross-shell customizable powerline-like prompt with icons (git)
+ pkgver = 1.1.0.r51.gb25b7a0
+ pkgrel = 1
+ url = https://github.com/reujab/silver
arch = x86_64
- arch = armv6h
- arch = armv7h
license = MIT
- makedepends = rust
makedepends = cargo
makedepends = git
- source = git+https://github.com/reujab/silver.git#branch=master
- md5sums = SKIP
+ provides = silver
+ conflicts = silver
+ source = git+https://github.com/reujab/silver
+ sha512sums = SKIP
pkgname = silver-git
diff --git a/PKGBUILD b/PKGBUILD
index 02c28feb570..d6bf33b9905 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,32 @@
-# Maintainer: reujab <reujab@gmail.com>
-_pkgname=silver
-pkgname=$_pkgname-git
-pkgver=v1.1.0
-pkgrel=3
-makedepends=('rust' 'cargo' 'git')
-arch=('i686' 'x86_64' 'armv6h' 'armv7h')
-pkgdesc="A cross-shell customizable powerline-like prompt with icons"
+# Maintainer: orhun <orhunparmaksiz@gmail.com>
+# https://github.com/orhun/pkgbuilds
+
+pkgname=silver-git
+pkgver=1.1.0.r51.gb25b7a0
+pkgrel=1
+pkgdesc="A cross-shell customizable powerline-like prompt with icons (git)"
+arch=('x86_64')
+url="https://github.com/reujab/silver"
license=('MIT')
-source=(git+https://github.com/reujab/silver.git#branch=master)
-md5sums=('SKIP')
+makedepends=('cargo' 'git')
+conflicts=("${pkgname%-git}")
+provides=("${pkgname%-git}")
+source=("git+${url}")
+sha512sums=('SKIP')
pkgver() {
- cd "$srcdir/$_pkgname"
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ cd "${pkgname%-git}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${pkgname%-git}"
+ cargo build --release --locked --all-features
}
package() {
- cd "$srcdir/$_pkgname"
- cargo install --locked --all-features --no-track --root "$pkgdir/usr/" --path .
- install -Dm644 license "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd "${pkgname%-git}"
+ install -Dm 755 "target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin"
+ install -Dm 644 readme.md -t "$pkgdir/usr/share/doc/${pkgname%-git}"
+ install -Dm 644 license -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
}