summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Müller2015-11-23 14:54:16 +0100
committerMarcel Müller2015-11-23 15:01:11 +0100
commitbd9e4841485ffbced13dddced5a7cf281777b761 (patch)
treec9d96ffaadce0b5c9610bfa836fb6e7bb93acb3c
downloadaur-bd9e4841485ffbced13dddced5a7cf281777b761.tar.gz
Initial Commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD34
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f74cea8754c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = rust-gallery
+ pkgdesc = A simple and fast web gallery, meant for the command line.
+ pkgver = r1.ee7ab9c
+ pkgrel = 1
+ url = https://github.com/TheNeikos/rust-gallery
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = cargo
+ makedepends = rust
+ depends = openssl
+ provides = rust-gallery
+ conflicts = rust-gallery
+ source = git+https://github.com/TheNeikos/rust-gallery.git
+ md5sums = SKIP
+
+pkgname = rust-gallery
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1656e754d7a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Marcel Müller <neikos at neikos dot email>
+pkgname=rust-gallery
+pkgver=r1.ee7ab9c
+pkgrel=1
+pkgdesc="A simple and fast web gallery, meant for the command line."
+url="https://github.com/TheNeikos/rust-gallery"
+arch=('x86_64')
+license=('GPL')
+depends=('openssl')
+makedepends=('git' 'cargo' 'rust')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+replaces=()
+backup=()
+options=()
+install=
+source=('git+https://github.com/TheNeikos/rust-gallery.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ # Git, no tags available
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ cargo build --release
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}/"
+ cargo install --path . --root "$pkgdir/usr/bin"
+}