summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo Bargen2016-04-16 10:39:54 +0200
committerDanilo Bargen2016-04-16 10:40:09 +0200
commit83404649c9ea78254f46028743af3ca5f88313d7 (patch)
treef780be85a5bdb2a91dadd52fa34e9b564dd37ff9
downloadaur-83404649c9ea78254f46028743af3ca5f88313d7.tar.gz
Version r78.db423da
-rw-r--r--.SRCINFO27
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD34
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..59894fec38a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+# Generated by mksrcinfo v8
+# Sat Apr 16 08:40:05 UTC 2016
+pkgbase = tealdeer-git
+ pkgdesc = A fast TLDR client written in Rust.
+ pkgver = r78.db423da
+ pkgrel = 1
+ url = https://github.com/dbrgn/tealdeer
+ arch = x86_64
+ arch = i686
+ license = MIT,
+ license = Apache
+ makedepends = git
+ makedepends = rust
+ makedepends = cargo
+ provides = tldr
+ conflicts = tldr-rs,
+ conflicts = tldr-rs-git,
+ conflicts = nodejs-tldr,
+ conflicts = nodejs-tldr-git,
+ conflicts = tldr-cpp-client,
+ conflicts = tldr-git
+ options = !emptydirs
+ source = git+https://github.com/dbrgn/tealdeer
+ md5sums = SKIP
+
+pkgname = tealdeer-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..321fc6837c8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+*.swp
+pkg/
+src/
+*.tar.gz
+*.tar.xz
+tldr-rs/
+tealdeer/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cb2255709d4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Danilo Bargen <aur at dbrgn dot ch>
+pkgname=tealdeer-git
+_name=tealdeer
+pkgver=r78.db423da
+pkgrel=1
+pkgdesc="A fast TLDR client written in Rust."
+arch=('x86_64' 'i686')
+url="https://github.com/dbrgn/tealdeer"
+license=('MIT', 'Apache')
+depends=('')
+makedepends=('git' 'rust' 'cargo')
+provides=('tldr')
+conflicts=('tldr-rs', 'tldr-rs-git', 'nodejs-tldr', 'nodejs-tldr-git', 'tldr-cpp-client', 'tldr-git')
+options=(!emptydirs)
+source=('git+https://github.com/dbrgn/tealdeer')
+md5sums=('SKIP')
+
+build() {
+ cd "$srcdir/$_name"
+ cargo build --release
+}
+
+package() {
+ cd "$srcdir/$_name"
+ mkdir -p $pkgdir/usr/bin
+ install -o root -g root -m 755 target/release/tldr $pkgdir/usr/bin
+}
+
+pkgver() {
+ cd "$srcdir/$_name"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+# vim:set ts=2 sw=2 et: