summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorb1tl0rd2019-12-06 18:57:00 -0300
committerb1tl0rd2019-12-06 18:57:00 -0300
commit3dc67ad5b5b2cdd2aa9bcfa74af8d1b36caf8442 (patch)
tree7ac6bfdb9e49c3c66d2af7e89084bbcfedca26bc
downloadaur-3dc67ad5b5b2cdd2aa9bcfa74af8d1b36caf8442.tar.gz
starship-git
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD39
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..91e9b78ecd1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = starship-git
+ pkgdesc = The cross-shell prompt for astronauts
+ pkgver = 0.27.0.580.g1de281e
+ pkgrel = 1
+ url = https://github.com/starship/starship
+ arch = x86_64
+ license = ISC
+ makedepends = rust
+ makedepends = cargo
+ makedepends = git
+ optdepends = powerline-fonts: powerline symbols for terminals
+ optdepends = nerd-fonts-complete: popular collections such as Font Awesome & fonts such as Hack
+ conflicts = starship
+ source = starship::git+https://github.com/starship/starship.git
+ sha256sums = SKIP
+
+pkgname = starship-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..39e6aac423e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Walter C <bitlord@disroot.org>
+
+pkgname="starship-git"
+_pkgname="starship"
+pkgver=0.27.0.580.g1de281e
+pkgrel=1
+pkgdesc="The cross-shell prompt for astronauts"
+arch=("x86_64")
+url="https://github.com/starship/starship"
+license=("ISC")
+depends=()
+optdepends=('powerline-fonts: powerline symbols for terminals'
+ 'nerd-fonts-complete: popular collections such as Font Awesome & fonts such as Hack')
+makedepends=("rust" "cargo" "git")
+provides=()
+conflicts=("starship")
+source=("$_pkgname::git+https://github.com/starship/starship.git")
+sha256sums=("SKIP")
+
+pkgver() {
+ cd "$_pkgname"
+ echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ cargo build --release --locked
+}
+
+check() {
+ cd $_pkgname
+ cargo test --locked
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}