diff options
author | Josip Ponjavic | 2017-10-25 00:43:37 +0200 |
---|---|---|
committer | Josip Ponjavic | 2017-10-25 00:43:37 +0200 |
commit | a479d990d02c0923f73d0dca2d228b93316a0917 (patch) | |
tree | ab6dee576f39342b6a177a56c19311f7d9c0c433 | |
download | aur-a479d990d02c0923f73d0dca2d228b93316a0917.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d38650280ce3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = marker-git + pkgdesc = A gtk3 markdown editor + pkgver = 2017.10.05.r2.g0fe645a + pkgrel = 1 + url = https://github.com/fabiocolacio/Marker + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = meson + depends = gtksourceview3 + depends = webkit2gtk + optdepends = pandoc + optdepends = wkhtmltopdf + provides = marker + conflicts = marker + source = git+https://github.com/fabiocolacio/Marker.git + sha256sums = SKIP + +pkgname = marker-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..57e47c05eb38 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com> +# Contributor: + +pkgname=marker-git +pkgver=2017.10.05.r2.g0fe645a +pkgrel=1 +pkgdesc="A gtk3 markdown editor" +arch=('i686' 'x86_64') +url="https://github.com/fabiocolacio/Marker" +license=('GPL3') +depends=('gtksourceview3' 'webkit2gtk') +makedepends=('git' 'meson') +optdepends=('pandoc' 'wkhtmltopdf') +provides=("${pkgname%-*}") +conflicts=("${pkgname%-*}") +source=("git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + cd Marker + git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + sed -e '/^meson.add_install_script/ s/^#*/#/' -i Marker/meson.build +} + +build() { + cd Marker + rm -rf _build + meson _build --prefix=/usr + ninja -C _build +} + +package() { + cd Marker + env DESTDIR="$pkgdir" ninja -C _build install +} |