Created
April 16, 2018 18:58
-
-
Save AlexTalker/4563ebde05fc8159bdf77fae45f50745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com> | |
# Contributor: | |
pkgname=marker-git | |
pkgver=2018.03.09.r86.g2d701156 | |
pkgrel=1 | |
pkgdesc='Markdown editor for linux made with Gtk+-3.0' | |
arch=('x86_64') | |
url='https://github.com/fabiocolacio/Marker' | |
license=('GPL3') | |
depends=('gtksourceview3' 'gtkspell3' 'webkit2gtk') | |
makedepends=('git' 'meson') | |
optdepends=('pandoc: export to HTML, PDF, RTF, OTF, DOCX, LaTeX') | |
provides=("${pkgname%-*}") | |
conflicts=("${pkgname%-*}") | |
source=("git+${url}.git") | |
# 'scidown::git+https://github.com/Mandarancio/scidown.git' | |
# 'charter::git+https://github.com/Mandarancio/charter.git' | |
# 'tinyexpr::git+https://github.com/codeplea/tinyexpr.git') | |
sha256sums=('SKIP') | |
options=('!strip' '!upx' '!optipng' '!buildflags' '!makeflags' 'debug' 'emptydirs') | |
# 'SKIP' 'SKIP' 'SKIP') | |
pkgver() { | |
cd Marker | |
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' | |
} | |
prepare() { | |
cd Marker | |
export LC_ALL=C | |
git submodule update --init --recursive | |
# git submodule init | |
# git config submodule.src/scidown.url "$srcdir/scidown" | |
# git submodule update src/scidown | |
# cd src/scidown | |
# git submodule init | |
# git config submodule.src/charter.url "$srcdir/charter" | |
# git submodule update src/charter | |
# cd src/charter | |
# git submodule init | |
# git config submodule.src/tinyexpr.url "$srcdir/tinyexpr" | |
# git submodule update src/tinyexpr | |
} | |
build() { | |
cd Marker | |
export LC_ALL=C | |
mkdir -p build | |
cd build | |
meson .. --prefix=/usr | |
ninja | |
} | |
package() { | |
cd Marker | |
export LC_ALL=C | |
cd build | |
DESTDIR="$pkgdir" ninja install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment