diff options
author | Bartłomiej Piotrowski | 2018-01-07 17:51:41 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski | 2018-01-07 17:51:41 +0100 |
commit | 44cdf3a648e48fb8a126ccf77517bdc2b0e75cff (patch) | |
tree | 1291664c999cc3962318617aa460628167ba4272 | |
download | aur-44cdf3a648e48fb8a126ccf77517bdc2b0e75cff.tar.gz |
Import from official repositories
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | moinmoin.install | 3 |
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8b4b1ea1b90d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = moinmoin + pkgdesc = A python wiki clone + pkgver = 1.9.9 + pkgrel = 2 + url = http://moinmo.in/ + install = moinmoin.install + arch = any + license = GPL + depends = python2 + conflicts = moin + source = https://static.moinmo.in/files/moin-1.9.9.tar.gz + source = https://static.moinmo.in/files/moin-1.9.9.tar.gz.asc + source = moinmoin.patch::https://bitbucket.org/thomaswaldmann/moin-1.9/commits/561b7a9c2bd91b61d26cd8a5f39aa36bf5c6159e/raw + validpgpkeys = 6D5BEF9ADD2075805747B70F9F88FB52FAF7B393 + sha256sums = 4397d7760b7ae324d7914ffeb1a9eeb15e09933b61468072acd3c3870351efa4 + sha256sums = SKIP + sha256sums = 55abcbe7356390bbc6b8504012365c9f5c50cbb68cd7ec10632945aaaae37438 + +pkgname = moinmoin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5420805c2d99 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 197396 2016-11-29 17:37:31Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Samuel Mathieson <smathieson@gmail.com> + +pkgname=moinmoin +_xpkgname=moin +pkgver=1.9.9 +pkgrel=2 +pkgdesc="A python wiki clone" +arch=(any) +url="http://moinmo.in/" +license=('GPL') +depends=('python2') +conflicts=('moin') +install=moinmoin.install +validpgpkeys=('6D5BEF9ADD2075805747B70F9F88FB52FAF7B393') +source=("https://static.moinmo.in/files/moin-$pkgver.tar.gz"{,.asc} + "$pkgname.patch::https://bitbucket.org/thomaswaldmann/moin-1.9/commits/561b7a9c2bd91b61d26cd8a5f39aa36bf5c6159e/raw") +sha256sums=('4397d7760b7ae324d7914ffeb1a9eeb15e09933b61468072acd3c3870351efa4' + 'SKIP' + '55abcbe7356390bbc6b8504012365c9f5c50cbb68cd7ec10632945aaaae37438') + +prepare() { + cd "$srcdir"/${_xpkgname}-$pkgver + # python2 fix + for file in $(find . -name '*.py' -print) wiki/server/*; do + sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file + sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file + done + patch -p1 -i $srcdir/$pkgname.patch +} + +build() { + cd "$srcdir"/${_xpkgname}-$pkgver + python2 setup.py build +} + +package() { + cd "$srcdir"/${_xpkgname}-$pkgver + python2 setup.py install --root="$pkgdir" --record=INSTALLED_FILES +} diff --git a/moinmoin.install b/moinmoin.install new file mode 100644 index 000000000000..eaffa0a02836 --- /dev/null +++ b/moinmoin.install @@ -0,0 +1,3 @@ +post_install() { + echo "Check https://wiki.archlinux.org/index.php/Moinmoin page for instructions" +} |