32 lines
974 B
Bash
32 lines
974 B
Bash
# Template file for 'gtkedit'
|
|
pkgname=gtkedit
|
|
version=0.2.3
|
|
revision=1
|
|
wrksrc="gtkwrite-${version}"
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config"
|
|
makedepends="gtk+-devel"
|
|
depends="desktop-file-utils"
|
|
short_desc="Text Editor written in C and Gtk+2"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/drankinatty/gtkwrite"
|
|
distfiles="https://github.com/drankinatty/gtkwrite/archive/v${version}.tar.gz"
|
|
checksum=0b7f9b9dfb58672f88dcc798a6d0de8e28da37d8c94f2797d3a7427c6c35f75e
|
|
|
|
# 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
|
|
}
|