makedeb


arch-wiki-lite 20230228-1


The Arch Wiki easily searched and viewable on console and browser.

Click here to go back to the commit logs for arch-wiki-lite.

Commit:


Hash: 3055e781f8ec372f8d9085d502df535852685990

Message: 20230228

Diff


diff --git a/.SRCINFO b/.SRCINFO
index ae75d33..a074769 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,21 +3,20 @@ pkgname = arch-wiki-lite
 pkgbase = arch-wiki-lite
 pkgdesc = The Arch Wiki easily searched and viewable on console and browser.
 pkgrel = 1
-pkgver = 20220525
-url = http://kmkeen.com/arch-wiki-lite/
+pkgver = 20230228
+url = https://gitlab.archlinux.org/grawlinson/arch-wiki-lite
 arch = all
 depends = bash
 depends = gzip
-license = GPL
+license = GPL2
 license = FDL
 makedepends = python3
 makedepends = arch-wiki-docs
 optdepends = dialog: for interactive menu
 optdepends = arch-wiki-docs: for wiki-search-html
 optdepends = xdg-utils: for wiki-search-html
-source = http://kmkeen.com/arch-wiki-lite/arch-wiki-lite-20181022.tar.gz
-sha512sums = 1bc127c964ddf858a60e1be672dbe11bb9015e0a690a7552da5ac0c007b75fa3bc53bdf64aea199a39c2e91c787bbd01879f66b7739a3f367ee59fe5f33cf50b
-b2sums = 837da2d5832f16e449845e918fc8f24c6c34c4addce78b3356a0627ae54b164b98a79196a839c6de7c9756323cbce31a3eb50873c8cf0e9c41c986a75c852dcb
+source = arch-wiki-lite-a9673ee216ba152377543339e1b26e024975d804.zip::https://gitlab.archlinux.org/grawlinson/arch-wiki-lite/-/archive/a9673ee216ba152377543339e1b26e024975d804/arch-wiki-lite-a9673ee216ba152377543339e1b26e024975d804.zip
+b2sums = fc7c6185e37c06ba66ec16c8fe39e5186c7542aa12f8ec58b881051b7dfe95e86526ea09e91d814a9dfbd05f841a9574fe5c466891080a9b0e184a552860f92c
 makedepends = python3
 makedepends = arch-wiki-docs
 optdepends = dialog: for interactive menu
diff --git a/PKGBUILD b/PKGBUILD
index 9e70866..045e478 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,36 @@
 # Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
 # Contributor: George Rawlinson (ARCH) <grawlinson@archlinux.org>
 # Contributor: Kyle Keen (ARCH) <keenerd@gmail.com>
-
 pkgname=arch-wiki-lite
-pkgver=20220525
-_codever=20181022
+pkgver=20230228
 pkgrel=1
 pkgdesc='The Arch Wiki easily searched and viewable on console and browser.'
 arch=('all')
-url='http://kmkeen.com/arch-wiki-lite/'
-_watch="https://www.archlinux.org/packages/community/any/arch-wiki-docs/"
-license=('GPL' 'FDL')
+url='https://gitlab.archlinux.org/grawlinson/arch-wiki-lite'
+license=('GPL2' 'FDL')
 depends=('bash' 'gzip')
 makedepends=('python3' '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")
-sha512sums=('1bc127c964ddf858a60e1be672dbe11bb9015e0a690a7552da5ac0c007b75fa3bc53bdf64aea199a39c2e91c787bbd01879f66b7739a3f367ee59fe5f33cf50b')
-b2sums=('837da2d5832f16e449845e918fc8f24c6c34c4addce78b3356a0627ae54b164b98a79196a839c6de7c9756323cbce31a3eb50873c8cf0e9c41c986a75c852dcb')
-
-prepare(){
-  cd "$pkgname"
-  sed -i 's/body class="mediawiki/body class="/' wiki_lite.py
-}
+# update commits from here
+# https://gitlab.archlinux.org/archlinux/packaging/packages/arch-wiki-lite/-/raw/main/PKGBUILD
+_commit='a9673ee216ba152377543339e1b26e024975d804'
+source=("$pkgname-$_commit.zip::$url/-/archive/$_commit/arch-wiki-lite-$_commit.zip")
+b2sums=('fc7c6185e37c06ba66ec16c8fe39e5186c7542aa12f8ec58b881051b7dfe95e86526ea09e91d814a9dfbd05f841a9574fe5c466891080a9b0e184a552860f92c')
 
 build() {
-  cd "$pkgname"
+  cd "$pkgname-$_commit"
   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"
+  cd "$pkgname-$_commit"
+  # 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
 }