Date: Tuesday, February 28, 2023 @ 05:59:46
Author: grawlinson
Revision: 1405562
archrelease: copy trunk to community-any
Added:
arch-wiki-lite/repos/community-any/PKGBUILD
(from rev 1405561, arch-wiki-lite/trunk/PKGBUILD)
arch-wiki-lite/repos/community-any/fix-regex.patch
(from rev 1405561, arch-wiki-lite/trunk/fix-regex.patch)
Deleted:
arch-wiki-lite/repos/community-any/PKGBUILD
arch-wiki-lite/repos/community-any/fix-regex.patch
-----------------+
PKGBUILD | 91 ++++++++++++++++++++++++++----------------------------
fix-regex.patch | 22 ++++++-------
2 files changed, 56 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-28 05:58:49 UTC (rev 1405561)
+++ PKGBUILD 2023-02-28 05:59:46 UTC (rev 1405562)
@@ -1,46 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-# Maintainer: Kyle Keen <[email protected]>
-
-pkgname=arch-wiki-lite
-pkgver=20221115
-_codever=20181022
-pkgrel=1
-pkgdesc='The wiki without html. 1/9 as big, easily searched and viewable on
console.'
-arch=('any')
-url='http://kmkeen.com/arch-wiki-lite/'
-_watch="https://www.archlinux.org/packages/community/any/arch-wiki-docs/"
-license=('GPL' 'FDL')
-depends=('bash' 'gzip')
-makedepends=('python' 'arch-wiki-docs')
-optdepends=('dialog: for interactive menu'
- 'arch-wiki-docs: for wiki-search-html'
- 'xdg-utils: for wiki-search-html')
-source=(
- "http://kmkeen.com/$pkgname/$pkgname-$_codever.tar.gz"
- 'fix-regex.patch'
-)
-sha512sums=('1bc127c964ddf858a60e1be672dbe11bb9015e0a690a7552da5ac0c007b75fa3bc53bdf64aea199a39c2e91c787bbd01879f66b7739a3f367ee59fe5f33cf50b'
-
'5aedb11237656d68680978b9f93c11aeb0e2e19cc07830c30180de91888e77dee72011ab0e70d08d0b559547f5e115fc22bee48b36ebed0b3ef7427d8f30dfd1')
-b2sums=('837da2d5832f16e449845e918fc8f24c6c34c4addce78b3356a0627ae54b164b98a79196a839c6de7c9756323cbce31a3eb50873c8cf0e9c41c986a75c852dcb'
-
'f5ac130ac35d2ae468b9d14156009d644e5e10b00a70f8e501002e26f520f9ca18c87fee3a90af21eb4b9aa3e73cbb58b2f59dbc044b384e46ca81c37dbc36d8')
-
-prepare() {
- cd "$pkgname"
-
- patch -p1 -i "$srcdir/fix-regex.patch"
-}
-
-build() {
- cd "$pkgname"
- LC_ALL=en_US.UTF-8 python3 wiki_lite.py
-}
-
-package() {
- cd "$pkgname"
- install -d "$pkgdir/usr/share/doc/arch-wiki/text/"
- install -m 0644 wiki/* "$pkgdir/usr/share/doc/arch-wiki/text/"
- install -Dm 0755 wiki-search "$pkgdir/usr/bin/wiki-search"
- install -Dm 0755 wiki-search-html "$pkgdir/usr/bin/wiki-search-html"
- install -Dm 0644 wiki-search.dialog.rc
"$pkgdir/etc/dialog.d/wiki-search.dialog.rc"
-}
-
Copied: arch-wiki-lite/repos/community-any/PKGBUILD (from rev 1405561,
arch-wiki-lite/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-28 05:59:46 UTC (rev 1405562)
@@ -0,0 +1,45 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Kyle Keen <[email protected]>
+
+pkgname=arch-wiki-lite
+pkgver=20230228
+pkgrel=1
+pkgdesc='Arch Wiki without HTML. 1/9 as big, easily searched & viewable on
console'
+arch=('any')
+url='https://gitlab.archlinux.org/grawlinson/arch-wiki-lite'
+license=('GPL2' 'FDL')
+depends=('bash' 'gzip')
+makedepends=(
+ 'git'
+ 'python'
+ 'arch-wiki-docs'
+)
+optdepends=(
+ 'dialog: for interactive menu'
+ 'arch-wiki-docs: for wiki-search-html'
+ 'xdg-utils: for wiki-search-html'
+)
+_commit='a9673ee216ba152377543339e1b26e024975d804'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+build() {
+ cd "$pkgname"
+
+ LC_ALL=en_US.UTF-8 python3 wiki_lite.py
+}
+
+package() {
+ cd "$pkgname"
+
+ # cli scripts
+ install -vDm755 -t "$pkgdir/usr/bin" wiki-search{,-html}
+
+ # assets
+ install -vd "$pkgdir/usr/share/doc/arch-wiki/text"
+ cp -vr wiki/* "$pkgdir/usr/share/doc/arch-wiki/text"
+
+ # dialog
+ install -vDm644 -t "$pkgdir/etc/dialog.d" wiki-search.dialog.rc
+}
+
Deleted: fix-regex.patch
===================================================================
--- fix-regex.patch 2023-02-28 05:58:49 UTC (rev 1405561)
+++ fix-regex.patch 2023-02-28 05:59:46 UTC (rev 1405562)
@@ -1,11 +0,0 @@
---- a/wiki_lite.py
-+++ b/wiki_lite.py
-@@ -98,7 +98,7 @@ def remove_tags(html):
- flags = re.DOTALL | re.MULTILINE
- #body = re.compile('^<body class.*?^NewPP limit report$', flags)
- #body = re.compile('^<body
class="mediawiki.*?"site":"loading","user":"ready","user.groups":"ready"',
flags)
-- body = re.compile('^<body class="mediawiki.*?<li
id="footer-info-copyright">', flags)
-+ body = re.compile('^<body .*?<li id="footer-info-copyright">', flags)
- html = body.findall(html)[0]
- html = '\n'.join(html.split('\n')[:-1])
- toc = re.compile('^<div class="toc noprint" style="text-align: center;
margin-bottom: 1em">.*?</div>$', flags)
Copied: arch-wiki-lite/repos/community-any/fix-regex.patch (from rev 1405561,
arch-wiki-lite/trunk/fix-regex.patch)
===================================================================
--- fix-regex.patch (rev 0)
+++ fix-regex.patch 2023-02-28 05:59:46 UTC (rev 1405562)
@@ -0,0 +1,11 @@
+--- a/wiki_lite.py
++++ b/wiki_lite.py
+@@ -98,7 +98,7 @@ def remove_tags(html):
+ flags = re.DOTALL | re.MULTILINE
+ #body = re.compile('^<body class.*?^NewPP limit report$', flags)
+ #body = re.compile('^<body
class="mediawiki.*?"site":"loading","user":"ready","user.groups":"ready"',
flags)
+- body = re.compile('^<body class="mediawiki.*?<li
id="footer-info-copyright">', flags)
++ body = re.compile('^<body .*?<li id="footer-info-copyright">', flags)
+ html = body.findall(html)[0]
+ html = '\n'.join(html.split('\n')[:-1])
+ toc = re.compile('^<div class="toc noprint" style="text-align: center;
margin-bottom: 1em">.*?</div>$', flags)