[arch-commits] Commit in arch-wiki-docs/trunk (PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Wed May 25 08:06:15 UTC 2022


    Date: Wednesday, May 25, 2022 @ 08:06:15
  Author: grawlinson
Revision: 1210329

upgpkg: arch-wiki-docs 20220525-1

Modified:
  arch-wiki-docs/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-25 07:57:30 UTC (rev 1210328)
+++ PKGBUILD	2022-05-25 08:06:15 UTC (rev 1210329)
@@ -1,17 +1,20 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
 # Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
 
 pkgname=arch-wiki-docs
-pkgdesc="Pages from Arch Wiki optimized for offline browsing"
-pkgver=20211222
-_commit=216a2170262f5b1ee4af3ac9b565fd3be2752df9
+pkgver=20220525
 pkgrel=1
+pkgdesc='Pages from Arch Wiki optimized for offline browsing'
 arch=('any')
-url="https://github.com/lahwaacz/arch-wiki-docs"
+url='https://github.com/lahwaacz/arch-wiki-docs'
 license=('FDL')
+makedepends=(
+  'git' 'python' 'python-simplemediawiki' 'python-lxml' 'python-cssselect' 'python-requests'
+)
 options=('!strip')
-makedepends=('git' 'python' 'python-simplemediawiki' 'python-lxml' 'python-cssselect' 'python-requests')
-source=("git://github.com/lahwaacz/arch-wiki-docs.git#commit=${_commit}")
-md5sums=('SKIP')
+_commit='216a2170262f5b1ee4af3ac9b565fd3be2752df9'
+source=("$pkgname::git+https://github.com/lahwaacz/arch-wiki-docs#commit=$_commit")
+b2sums=('SKIP')
 
 pkgver() {
   date "+%Y%m%d"
@@ -19,10 +22,15 @@
 
 prepare() {
   cd "$pkgname"
-  LANG=en_US.UTF-8 python arch-wiki-docs.py --output-directory "$srcdir/build_wiki" --clean --safe-filenames
+
+  LANG=en_US.UTF-8 python \
+    arch-wiki-docs.py \
+    --output-directory "$srcdir/build_wiki" \
+    --clean \
+    --safe-filenames
 }
 
 package() {
-  install -dm755 "$pkgdir/usr/share/doc/arch-wiki/html"
-  cp -r "$srcdir"/build_wiki/* "$pkgdir/usr/share/doc/arch-wiki/html/"
+  install -vdm755 "$pkgdir/usr/share/doc/arch-wiki/html"
+  cp -r build_wiki/* "$pkgdir/usr/share/doc/arch-wiki/html"
 }



More information about the arch-commits mailing list