vp-build/srcpkgs/gtkedit/template

32 lines
962 B
Bash

# Template file for 'gtkedit'
pkgname=gtkedit
version=0.1.8
revision=2
wrksrc="gtkwrite-${version}"
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="gtk+-devel"
depends="desktop-file-utils"
maintainer="cr6git <quark6@protonmail.com>"
short_desc="Text Editor written in C and Gtk+2"
homepage="https://github.com/drankinatty/gtkwrite"
license="GPL-2"
distfiles="https://github.com/drankinatty/gtkwrite/archive/v${version}.tar.gz"
checksum=bcca9e6dbdfafe9c77204ff0dee57678286fd9c5b6fd21e73d11b6652f0c076f
# Without GtkSourceView it will compile as 'gtkedit'
# With GtkSourceView it compiles as 'gtkwrite'
pre_build() {
CFLAGS+=" $(pkg-config --cflags gtk+-2.0)"
LDFLAGS+=" $(pkg-config --libs gtk+-2.0)"
}
do_install() {
vbin bin/gtkedit_dev gtkedit
vdoc README.md
vinstall img/gtkwrite.png 644 usr/share/gtkwrite/img
vinstall img/gtkwrite.ico 644 usr/share/gtkwrite/img
vinstall ${FILESDIR}/gtkedit.desktop 644 usr/share/applications
}