summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Reggi2021-04-04 20:09:20 +0200
committerEmilio Reggi2021-04-04 20:09:20 +0200
commit4dddbd6963d8ba358583547d4dcd16d37224a24d (patch)
treec0e467c39ba1d46e5e86fe3d35f19437f5391639
downloadaur-4dddbd6963d8ba358583547d4dcd16d37224a24d.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD35
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0e4b600f7f6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = himalaya-git
+ pkgdesc = Minimalist CLI email client, written in Rust.
+ pkgver = 0.2.2
+ pkgrel = 1
+ url = https://github.com/soywod/himalaya
+ arch = any
+ license = BSD
+ makedepends = cargo
+ makedepends = git
+ provides = himalaya
+ conflicts = himalaya
+ source = himalaya::git+https://github.com/soywod/himalaya
+ md5sums = SKIP
+
+pkgname = himalaya-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..10f6e05dc8c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Emilio Reggi <nag@mailbox.org>
+pkgname=himalaya-git # '-bzr', '-git', '-hg' or '-svn'
+_pkgname=himalaya
+pkgver=r82.0d763a1
+pkgrel=1
+pkgdesc="Minimalist CLI email client, written in Rust."
+arch=('any')
+url="https://github.com/soywod/himalaya"
+license=('BSD')
+depends=('gcc-libs' 'openssl')
+makedepends=('cargo' 'git') # 'bzr', 'git', 'mercurial' or 'subversion'
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("${_pkgname}"::"git+${url}")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$_pkgname"
+ cargo build --release --locked --all-features --target-dir=target
+}
+
+check() {
+ cd "$_pkgname"
+ cargo test --release --locked --target-dir=target
+}
+
+package() {
+ cd "$_pkgname"
+ install -Dm 755 target/release/${_pkgname} -t "${pkgdir}/usr/bin"
+}