diff options
author | Felix Esch | 2015-06-26 00:20:14 +0200 |
---|---|---|
committer | Felix Esch | 2015-06-26 00:34:36 +0200 |
commit | 5b80c642f73cb1d935c09c13fcb7dd3c2bf5c89e (patch) | |
tree | 897a234bcd60c3ae8531927899de73cfab676ca9 /PKGBUILD | |
download | aur-5b80c642f73cb1d935c09c13fcb7dd3c2bf5c89e.tar.gz |
Initial commit with service file.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..35b4099f85fd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Felix Esch <felix_esch at alice dot de> + +# Upstream name of extension: +_extname=Mathoid +# Variant valid as package name without suffix and prefix +_basepkgname=mathoid + +pkgname=mediawiki-$_basepkgname-git +pkgver=0.2.4.r1713.g1706720 +pkgrel=1 +pkgdesc="Service for creating MathMl and SVGs." +install="mediawiki-mathoid.install" +source=("git+https://gerrit.wikimedia.org/r/mediawiki/services/$_basepkgname" + "mathoid.service") +sha256sums=('SKIP' + '09b0d397d7fd7045aa8c9c0ff44a60a3ee4428faef27eab25dd3f8484504206a') +arch=("any") +url="https://www.mediawiki.org/wiki/$_extname" +license=("GPL") +depends=(nodejs) +optdepends=("mediawiki-math: Extension that can use Mathoid.") +makedepends=(git npm) +provides=("mediawiki-$_basepkgname") +conflicts=("mediawiki-$_basepkgname") +backup=("usr/share/webapps/mediawiki/services/mathoid/config.yaml") + +pkgver() { + cd "$_basepkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/.*\///' +} + +package() { + # Target service directory of MediaWiki: + _extdir="$pkgdir/usr/share/webapps/mediawiki/services" + mkdir -p "$_extdir" + mv $_basepkgname "$_extdir/" + rm -r $_extdir/$_basepkgname/.git +} + +build() { + cd "$srcdir/$_basepkgname" + npm install +} |