Date: Monday, May 20, 2019 @ 01:19:54 Author: heftig Revision: 353632
1.30+1+g44c5972-2 Added: gtk-doc/trunk/fixperms.diff Modified: gtk-doc/trunk/PKGBUILD ---------------+ PKGBUILD | 10 +++++++--- fixperms.diff | 12 ++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-05-19 22:25:02 UTC (rev 353631) +++ PKGBUILD 2019-05-20 01:19:54 UTC (rev 353632) @@ -2,7 +2,7 @@ pkgname=gtk-doc pkgver=1.30+1+g44c5972 -pkgrel=1 +pkgrel=2 pkgdesc="Documentation tool for public library API" url="https://www.gtk.org/gtk-doc/" arch=(any) @@ -13,8 +13,10 @@ checkdepends=(bc gtk3 python-six python-parameterized) optdepends=('dblatex: PDF support') _commit=44c5972b167176f15cc32fc46743b596b7f00fe5 # master~2 -source=("git+https://gitlab.gnome.org/GNOME/gtk-doc.git#commit=$_commit") -sha256sums=('SKIP') +source=("git+https://gitlab.gnome.org/GNOME/gtk-doc.git#commit=$_commit" + fixperms.diff) +sha256sums=('SKIP' + 'bd8489e54c2e089197a692482c6f25b237b99db2b0419c4dcc3f29ce6f21e7e4') pkgver() { cd $pkgname @@ -23,6 +25,8 @@ prepare() { cd $pkgname + # https://gitlab.gnome.org/GNOME/gtk-doc/issues/84 + patch -Np1 -i ../fixperms.diff } build() { Added: fixperms.diff =================================================================== --- fixperms.diff (rev 0) +++ fixperms.diff 2019-05-20 01:19:54 UTC (rev 353632) @@ -0,0 +1,12 @@ +diff --git i/gtkdoc/highlight.py w/gtkdoc/highlight.py +index 8f6e470..82e11e8 100644 +--- i/gtkdoc/highlight.py ++++ w/gtkdoc/highlight.py +@@ -47,6 +47,6 @@ def highlight_code(code, lang='c'): + + + def append_style_defs(css_file_name): +- os.chmod(css_file_name, stat.S_IWRITE) ++ os.chmod(css_file_name, 0o644) + with open(css_file_name, 'at', newline='\n', encoding='utf-8') as css: + css.write(HTML_FORMATTER.get_style_defs())
