summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorIsmaël Bouya2016-10-31 00:33:18 +0100
committerIsmaël Bouya2016-10-31 00:35:17 +0100
commit189ffddf5ca8fb4465cf30436527bcba9797136b (patch)
tree28a5683175ea150ac221873e088f48a0464b3f0d /PKGBUILD
downloadaur-mediagoblin-plugin-basicsearch.tar.gz
Initial commit to AUR
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..540076eb2c0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer : Immae <ismael.bouya@normalesup.org>
+
+pkgname=mediagoblin-plugin-basicsearch
+pkgver=0.2.0.r14.gba0a154
+pkgrel=1
+pkgdesc='This plugin adds support for displaying media in GNU MediaGoblin based on simple search queries.'
+arch=('i686' 'x86_64')
+url='https://github.com/ayleph/mediagoblin-basicsearch'
+license=('AGPL')
+depends=('mediagoblin')
+install=plugin.install
+makedepends=('git')
+source=('basicsearch::git+https://github.com/ayleph/mediagoblin-basicsearch.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/basicsearch"
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package() {
+ cd "$srcdir/basicsearch"
+
+ install -dm755 "$pkgdir"/usr/share/webapps/mediagoblin/mediagoblin/plugins/
+ cp -a basicsearch "$pkgdir"/usr/share/webapps/mediagoblin/mediagoblin/plugins/
+}