summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Papakostas2016-04-17 23:17:01 -0500
committerJason Papakostas2016-04-17 23:17:01 -0500
commit0f41f9ef2657804306a3a146762562d20d47dec3 (patch)
tree2f06401ba5a76ae0aaad2147ae163d89f3a0da10
downloadaur-0f41f9ef2657804306a3a146762562d20d47dec3.tar.gz
initial PKGBUILD
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD37
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dabf33b159b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Mon Apr 18 04:16:50 UTC 2016
+pkgbase = epaste-git
+ pkgdesc = encrypts given text and turns encrypted bytes into base64 text which can be easily pasted/retrieved on pastebin websites
+ pkgver = v1.0.0.r0.7e961c5
+ pkgrel = 1
+ url = https://github.com/zetok/epaste
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = cargo
+ depends = gcc-libs
+ depends = libsodium
+ provides = epaste
+ conflicts = epaste
+ source = epaste::git+https://github.com/zetok/epaste.git
+ sha512sums = SKIP
+
+pkgname = epaste-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e5a06a68a80
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/epaste/
+/epaste-git-*.pkg.tar
+/epaste-git-*.pkg.tar.*
+/pkg/
+/src/ \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3a84b4be794
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Jason Papakostas <vithos@gmail.com>
+pkgname=epaste-git
+pkgver=v1.0.0.r0.7e961c5
+pkgrel=1
+pkgdesc="encrypts given text and turns encrypted bytes into base64 text which can be easily pasted/retrieved on pastebin websites"
+arch=('i686' 'x86_64')
+url="https://github.com/zetok/epaste"
+license=('GPL3')
+groups=()
+depends=('gcc-libs' 'libsodium')
+makedepends=('git' 'cargo')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+replaces=()
+backup=()
+options=()
+install=
+source=("${pkgname%-git}::git+${url}.git")
+noextract=()
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+
+ # Git, tags available
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ cargo build --release
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ install -Dm755 "$srcdir/${pkgname%-git}/target/release/${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}"
+}