32 lines
1,012 B
Bash
32 lines
1,012 B
Bash
|
# Template file for 'gtkedit'
|
||
|
pkgname=gtkedit
|
||
|
version=0.1.6
|
||
|
revision=1
|
||
|
build_style=gnu-makefile
|
||
|
hostmakedepends="pkg-config"
|
||
|
makedepends="gtk+-devel"
|
||
|
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=762f0d62f6733fd35d5d53003066a8eca1ad91d8724ec56d14573a251ac4b29d
|
||
|
wrksrc="gtkwrite-${version}"
|
||
|
|
||
|
# 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 styles/gtkwrite.xml 644 usr/share/gtksourceview-2.0/styles
|
||
|
vinstall styles/gtkwrite_light.xml 644 usr/share/gtksourceview-2.0/styles
|
||
|
}
|