Skip to content

Commit c822754

Browse files
committed
New package: geany-editorconfig-plugin-0.2.1
1 parent a5c177f commit c822754

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

  • srcpkgs/geany-editorconfig-plugin
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Template file for 'geany-editorconfig-plugin'
2+
pkgname=geany-editorconfig-plugin
3+
version=0.2.1
4+
revision=1
5+
#build_style=gnu-makefile
6+
make_build_args="EDITORCONFIG_PREFIX=/usr"
7+
hostmakedepends="make pkg-config"
8+
makedepends="geany-devel editorconfig-devel"
9+
short_desc="EditorConfig plugin for Geany"
10+
maintainer="zenobit <zenobit@disroot.org>"
11+
license="GPL-2.0-only"
12+
homepage="https://github.com/editorconfig/editorconfig-geany"
13+
distfiles="https://github.com/editorconfig/editorconfig-geany/archive/refs/tags/v${version}.tar.gz"
14+
checksum=7df4990c49753aaece5a0994bd23eb9e55d0fd9c9f2947293cb13abe09341daa
15+
16+
CFLAGS+=" -fPIC"
17+
LDFLAGS+=" -shared -leditorconfig"
18+
19+
do_build() {
20+
make ${makejobs} CC="${CC}" \
21+
CFLAGS+="$(pkg-config --cflags geany)" \
22+
LDFLAGS+="$(pkg-config --libs geany)"
23+
}
24+
25+
do_install() {
26+
local plugindir=$(pkg-config --variable=libdir geany)/geany
27+
vinstall editorconfig-geany.so 755 "${plugindir}"
28+
}

0 commit comments

Comments
 (0)