64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
# Maintainer: Mikael Blomstrand <gmail: kmbloms>
|
|
# Contributor: MaryJaneInChain <gmail.com@maryjaneinchain>
|
|
# Contributor: Michael Goehler <somebody dot here at gmx dot de>
|
|
|
|
pkgname=remarkable
|
|
pkgver=1.87
|
|
pkgrel=7
|
|
pkgdesc="A free fully featured markdown editor for Linux."
|
|
arch=('any')
|
|
url="http://remarkableapp.github.io"
|
|
license=('MIT')
|
|
depends=('python'
|
|
'python-cairo'
|
|
'python-gobject'
|
|
'python-markdown'
|
|
'python-beautifulsoup4'
|
|
'python-lxml'
|
|
'python-setuptools'
|
|
'webkit2gtk'
|
|
'wkhtmltopdf'
|
|
'gtksourceview3'
|
|
)
|
|
makedepends=('python')
|
|
optdepends=('python-lxml: export to HTML format support'
|
|
'python-gtkspellcheck: Spellcheck (might cause problems)')
|
|
|
|
install="remarkable.install"
|
|
source=("https://github.com/jamiemcg/Remarkable/archive/v${pkgver}.tar.gz"
|
|
"stable.patch::https://github.com/jamiemcg/Remarkable/compare/v1.87...mbloms:stable.patch"
|
|
"https://patch-diff.githubusercontent.com/raw/jamiemcg/Remarkable/pull/369.patch"
|
|
"remarkable.install")
|
|
|
|
sha1sums=('a492dc5d0a276f36846a99287ae93c02e22a5cd8'
|
|
'8c052787c16a81b9d4c325d2270cdd3412951f6c'
|
|
'0011947d35909e001e24b13f2f65d3e25061c9c2'
|
|
'bdbfb750df9e5fb3022f47a46a80555259628cd1')
|
|
|
|
prepare() {
|
|
msg2 "Applying patches for webkit2gtk..."
|
|
cat *.patch | patch -p1 -d "${srcdir}/Remarkable-${pkgver}"
|
|
}
|
|
|
|
package() {
|
|
_python_site=$(python -c 'import site; print(site.getsitepackages()[0]);')
|
|
[ -z ${_python_site} ] && echo "error: could not identify python site_packages directory" && return 1
|
|
|
|
|
|
cd "Remarkable-${pkgver}"
|
|
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
install -Dm 755 "bin/remarkable" "${pkgdir}/usr/bin/remarkable"
|
|
install -D "debian/remarkable.mime" "${pkgdir}/usr/lib/mime/packages/remarkable"
|
|
install -D "data/media/remarkable.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/remarkable.svg"
|
|
install -D remarkable.desktop "${pkgdir}/usr/share/applications/remarkable.desktop"
|
|
|
|
mv data/glib-2.0 "${pkgdir}/usr/share/"
|
|
|
|
install -d "${pkgdir}/${_python_site}"
|
|
mv markdown pdfkit remarkable remarkable_lib "${pkgdir}/${_python_site}/"
|
|
|
|
mv data "${pkgdir}/usr/share/remarkable/"
|
|
}
|