[arch-commits] Commit in gi-docgen/trunk (PKGBUILD fix.diff)

Jan Steffens heftig at archlinux.org
Tue Mar 23 20:38:32 UTC 2021


    Date: Tuesday, March 23, 2021 @ 20:38:32
  Author: heftig
Revision: 410794

2021.2+76+g7416fbe-1

Added:
  gi-docgen/trunk/PKGBUILD
  gi-docgen/trunk/fix.diff

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 fix.diff |   13 +++++++++++++
 2 files changed, 49 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-03-23 20:38:32 UTC (rev 410794)
@@ -0,0 +1,36 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+
+pkgname=gi-docgen
+pkgver=2021.2+76+g7416fbe
+pkgrel=1
+pkgdesc="Documentation generator for GObject-based libraries"
+url="https://gitlab.gnome.org/ebassi/gi-docgen"
+arch=(any)
+license=(Apache GPL3)
+depends=(python-jinja python-markdown python-markupsafe python-pygments
+         python-toml python-typogrify)
+makedepends=(python-setuptools python-pip git)
+_commit=7416fbe765919a0d8654b2599defd4c56d0e1c27  # main
+source=("git+$url.git#commit=$_commit" fix.diff)
+sha256sums=('SKIP'
+            'aa0a255c883fb19276f35f107c967cd961cb22e7e67a6b6f10048fef19301675')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  git apply -3 ../fix.diff
+}
+
+build() {
+  cd $pkgname
+  python setup.py build
+}
+
+package() {
+  cd $pkgname
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}

Added: fix.diff
===================================================================
--- fix.diff	                        (rev 0)
+++ fix.diff	2021-03-23 20:38:32 UTC (rev 410794)
@@ -0,0 +1,13 @@
+diff --git i/setup.py w/setup.py
+index 93ede37..5e18941 100644
+--- i/setup.py
++++ w/setup.py
+@@ -55,7 +55,7 @@ package_data = {
+ 
+ data_files = [
+     ('share/pkgconfig', ['gi-docgen.pc']),
+-    ('share/man/man1', ['gi-docgen.1']),
++    ('share/man/man1', ['docs/gi-docgen.1']),
+ ]
+ 
+ if __name__ == '__main__':



More information about the arch-commits mailing list