Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions srcpkgs/geany-editorconfig-plugin/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Template file for 'geany-editorconfig-plugin'
pkgname=geany-editorconfig-plugin
version=0.2.1
revision=1
make_build_args="EDITORCONFIG_PREFIX=/usr"
hostmakedepends="make pkg-config"
makedepends="geany-devel editorconfig-devel"
short_desc="EditorConfig plugin for Geany"
maintainer="zenobit <zenobit@disroot.org>"
license="GPL-2.0-only"
homepage="https://github.com/editorconfig/editorconfig-geany"
distfiles="https://github.com/editorconfig/editorconfig-geany/archive/refs/tags/v${version}.tar.gz"
checksum=7df4990c49753aaece5a0994bd23eb9e55d0fd9c9f2947293cb13abe09341daa

CFLAGS+=" -fPIC"
LDFLAGS+=" -shared -leditorconfig"

do_build() {
make ${makejobs} CC="${CC}" \
CFLAGS+="$(pkg-config --cflags geany)" \
LDFLAGS+="$(pkg-config --libs geany)"
}

do_install() {
local plugindir=$(pkg-config --variable=libdir geany)/geany
vinstall editorconfig-geany.so 755 "${plugindir}"
}