From 4e8d8fa49141241336273f6517c66f5f2c71821d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Genov=C3=A9s?= Date: Fri, 19 Oct 2018 18:44:16 +0200 Subject: [PATCH] Initial PKGBUILD commit, thanks to @yochananmarqos --- PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..c1b9f95 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +pkgname=uberwriter +_pkgname=uberwriter +pkgver=2.1.2 +pkgrel=1 +pkgdesc='A distraction free Markdown editor for GNU/Linux made with GTK+' +arch=('any') +url='http://uberwriter.github.io/uberwriter/' +license=('GPL3') +depends=('gtk3' 'pandoc' 'python-gtkspellcheck') +makedepends=('python-setuptools') +optdepends=('texlive-core' 'otf-fira-mono: Recommended font') +provides=("$_pkgname") +conflicts=("$_pkgname") +source=('git+https://github.com/UberWriter/uberwriter.git' + 'uberwriter.patch') +sha256sums=('SKIP' + '11f4c27a7f8ae954dd69f691b3a2c49db019cbc3c6a2e4c4a1a47293162e3d1b') + +pkgver() { + cd $_pkgname + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd $_pkgname + patch -Np1 -i "${srcdir}/uberwriter.patch" +} + +build() { + cd $_pkgname + python setup.py build +} + +package() { + cd $_pkgname + python setup.py install --skip-build --root="$pkgdir" --optimize=1 +} + +post_install() { + /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/ +} +post_upgrade() { + /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/ +} +post_remove() { + /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/ +}