E100Beta commented on this pull request.
> +
+pkgname="fbxkb"
+version="0.6"
+revision=1
+build_style=configure
+configure_args="--prefix=/usr"
+short_desc="Lightweight X keyboard layout indicator, uses GTK+2"
+maintainer="Pavel Kiselev <kispash@yandex.ru>"
+hostmakedepends="pkg-config xorg-server-devel gtk+-devel"
+makedepends="xorg-server-devel gtk+-devel"
+depends="gtk+"
+license="MIT"
+homepage="http://fbxkb.sourceforge.net/"
+distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz"
+checksum="fcbaf4ed9a70f58ea1316b19da74e2ca8b3fb0e2de5a73c849317589ce840ef2"
+nostrip_files="fbxkb"
The problem is that i have "non-PIE executable found in PIE build" error. I found this while searching the forums. Would `nopie=yes` be better? Or should I search for a problem in other areas?
E100Beta commented on this pull request.
> +
+pkgname="fbxkb"
+version="0.6"
+revision=1
+build_style=configure
+configure_args="--prefix=/usr"
+short_desc="Lightweight X keyboard layout indicator, uses GTK+2"
+maintainer="Pavel Kiselev <kispash@yandex.ru>"
+hostmakedepends="pkg-config xorg-server-devel gtk+-devel"
+makedepends="xorg-server-devel gtk+-devel"
+depends="gtk+"
+license="MIT"
+homepage="http://fbxkb.sourceforge.net/"
+distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz"
+checksum="fcbaf4ed9a70f58ea1316b19da74e2ca8b3fb0e2de5a73c849317589ce840ef2"
+nostrip_files="fbxkb"
Sorry, read this one after the push. I understand the problem now, shouldn't be hard to fix.
Thank you @Duncaen for helping me make this better!
The main problem (which prevented building package with PIE) was that `$(LDFLAGS)` were in the wrong place in the `Makefile`.
The way I do things right now involves patching out variables. I've seen with some other `template`s that editing files with `sed` is a more common practise. Should I do it, too?
Everything else was fixed as well and package is now fully functional/builds with right compilers/uses Void's build flags.
@Duncaen I did some final touches, `sed` is used to override `CC, CFLAGS, LDFLAGS` in `Makefile`s, and the patch is now as I first found it. Removed `configure_args`. Should now be good to go!