slcp: fix build and add build_pie
This commit is contained in:
parent
6c895bbc1e
commit
625a274468
1 changed files with 12 additions and 2 deletions
|
@ -1,16 +1,26 @@
|
||||||
# Template file for 'slcp'
|
# Template file for 'slcp'
|
||||||
pkgname=slcp
|
pkgname=slcp
|
||||||
version=0.2
|
version=0.2
|
||||||
revision=1
|
revision=2
|
||||||
|
build_pie=yes
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
makedepends="libgit2-devel"
|
makedepends="libgit2-devel"
|
||||||
short_desc="Simple shell prompt written in C"
|
short_desc="Simple shell prompt written in C"
|
||||||
maintainer="Duncan Overbruck <mail@duncano.de>"
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
||||||
license="THE BEER-WARE LICENSE (Revision 42)"
|
license="THE BEER-WARE LICENSE (Revision 42)"
|
||||||
homepage="https://github.com/schachmat/slcp"
|
homepage="https://github.com/schachmat/slcp"
|
||||||
distfiles="https://github.com/schachmat/slcp/archive/${version}.tar.gz"
|
distfiles="https://github.com/schachmat/slcp/archive/${version}.tar.gz"
|
||||||
checksum=a26e56832e37dbf1c7b776ddb137e422c987c19330575708a5945697e08e7cfe
|
checksum=a26e56832e37dbf1c7b776ddb137e422c987c19330575708a5945697e08e7cfe
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
sed -i 's|^CFLAGS =|override CFLAGS +=|g' config.mk
|
||||||
|
sed -i 's|^LDFLAGS =|override LDFLAGS +=|g' config.mk
|
||||||
|
sed -i 's| -I/usr/include||g' config.mk
|
||||||
|
sed -i 's| -I/usr/local/include||g' config.mk
|
||||||
|
sed -i 's| -L/usr/lib||g' config.mk
|
||||||
|
sed -i 's| -L/usr/local/lib||g' config.mk
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue