Initial PKGBUILD commit, thanks to

@yochananmarqos
webkit2png
Manuel Genovés 2018-10-19 18:44:16 +02:00
parent fbb5dc05db
commit 4e8d8fa491
1 changed files with 47 additions and 0 deletions

47
PKGBUILD 100644
View File

@ -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/
}