2014-03-20 16:42:28 +01:00
|
|
|
# Template file for 'xbps-static-git'
|
|
|
|
#
|
|
|
|
# NOTE: keep this package synchronized with "srcpkgs/xbps-git".
|
|
|
|
pkgname=xbps-static-git
|
2014-09-14 19:44:01 +02:00
|
|
|
version=20140915
|
2014-03-20 16:42:28 +01:00
|
|
|
revision=1
|
|
|
|
short_desc="The XBPS package system (development branch) - static bins"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.voidlinux.eu/xbps"
|
|
|
|
license="Simplified BSD"
|
2014-07-27 16:05:16 +02:00
|
|
|
hostmakedepends="which pkg-config git"
|
2014-07-14 10:41:11 +02:00
|
|
|
makedepends="zlib-devel libressl-devel libarchive-devel>=3.1.2"
|
2014-03-20 16:42:28 +01:00
|
|
|
|
|
|
|
provides="xbps-static-${version}_${revision}"
|
|
|
|
replaces="xbps-static>=0"
|
|
|
|
depends="xbps-triggers"
|
|
|
|
|
2014-03-31 12:20:29 +02:00
|
|
|
only_for_archs="i686-musl x86_64-musl armv6l-musl armv7l-musl"
|
2014-03-20 16:44:48 +01:00
|
|
|
|
2014-03-20 16:42:28 +01:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686-musl) CFLAGS+=" -fno-stack-protector";;
|
|
|
|
esac
|
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
local url="git://github.com/voidlinux/xbps"
|
|
|
|
msg_normal "Fetching source from $url ...\n"
|
|
|
|
git clone ${url} ${pkgname}-${version}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug --enable-static
|
|
|
|
}
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${wrksrc}/static-install install
|
|
|
|
vmkdir usr/sbin
|
|
|
|
mv ${wrksrc}/static-install/usr/sbin/*.static ${DESTDIR}/usr/sbin
|
|
|
|
}
|