Skip to content

Instantly share code, notes, and snippets.

@Mikael-Lovqvist
Last active March 11, 2022 05:49
Show Gist options
  • Save Mikael-Lovqvist/9ac9b88f01eaa18b3727b564592b0634 to your computer and use it in GitHub Desktop.
Save Mikael-Lovqvist/9ac9b88f01eaa18b3727b564592b0634 to your computer and use it in GitHub Desktop.
PKGBUILD for my fork of zimwiki
_pkgname=zim
pkgname=${_pkgname}-git
pkgver=0.74.3.r41.f4c98c2c
pkgrel=1
pkgdesc="A WYSIWYG text editor that aims at bringing the concept of a wiki to the desktop. Mikael Lövqvist's Git Version"
arch=(any)
license=('GPL' 'PerlArtistic')
url="http://zim-wiki.org/"
depends=('python')
conflicts=('zim')
replaces=('zim')
optdepends=('bzr: Version Control plugin'
'ditaa: Insert Ditaa plugin'
'git: Version Control plugin'
'gnuplot: Insert Gnuplot plugin'
'graphviz: Insert Diagram & Link Map plugins'
'hicolor-icon-theme: hicolor theme hierarchy'
'lilypond: Insert Score plugin'
'mercurial: Version Control plugin'
'pygtksourceview2: Source View plugin'
'python-gtkspell: Spell Checker plugin'
'r: Insert GNU R Plot plugin'
'scrot: Insert Screenshot plugin'
'texlive-bin: Insert Equation plugin'
'zeitgeist: Log events with Zeitgeist plugin'
)
source=('zim-git::git+https://github.com/Mikael-Lovqvist/zim-desktop-wiki.git#branch=tableplugin-fix-links')
md5sums=('SKIP')
pkgver() {
cd ${srcdir}/${pkgname}
printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd ${srcdir}/${pkgname}
sed -i 's|\t\tinstall_class.run(self)|&\n\t\treturn None|' setup.py
}
package() {
cd ${srcdir}/${pkgname}
python setup.py install --root=${pkgdir} --optimize=1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment