void-packages/srcpkgs/Marker/template

39 lines
1.6 KiB
Bash

# Template file for 'Marker'
pkgname=Marker
version=2023.05.02
revision=1
_scidown_commit=a7b7f063de4f272ef0ec12d00b98470888e8cb32
_charter_commit=a25dee1214ea9ba5882325066555cb813efbb489
_tinyexpr_commit=9476568b69de4c384903f1d5f255907b92592f45
build_wrksrc="Marker-${version}"
build_style=meson
hostmakedepends="glib-devel pkg-config itstool gettext"
makedepends="gtksourceview-devel gtkspell3-devel gtk+3-devel libglib-devel
libwebkit2gtk41-devel"
depends="iso-codes"
short_desc="Gtk3 markdown editor"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later, ISC, Zlib"
homepage="https://fabiocolacio.github.io/Marker/"
distfiles="https://github.com/fabiocolacio/Marker/archive/refs/tags/${version}.tar.gz
https://github.com/Mandarancio/scidown/archive/${_scidown_commit}.tar.gz
https://github.com/Mandarancio/charter/archive/${_charter_commit}.tar.gz
https://github.com/codeplea/tinyexpr/archive/${_tinyexpr_commit}.tar.gz"
checksum="097a6e3811f0c4c14c574b8aafee27ee62232ae3ad3084e18a35c2dc8a1e93dd
31e63658e2e79b5c5b0497d568e548f177fc89cb1dd9b6d78aba7685f0506ff0
60237a813383b44891e57049ba1f86cc5b89c28eee620b6ee90582a0c7ba6f8a
1c0c9496d9e9b693ae364860f0b66c403b87337db1b5a78275a0c78a07495286"
post_extract() {
rmdir "${build_wrksrc}/src/scidown"
mv "scidown-${_scidown_commit}" "${build_wrksrc}/src/scidown"
rmdir "${build_wrksrc}/src/scidown/src/charter"
mv "charter-${_charter_commit}" "${build_wrksrc}/src/scidown/src/charter"
rmdir "${build_wrksrc}/src/scidown/src/charter/src/tinyexpr"
mv "tinyexpr-${_tinyexpr_commit}" "${build_wrksrc}/src/scidown/src/charter/src/tinyexpr"
}
post_install() {
vlicense src/scidown/LICENSE scidown.LICENSE
}