xbps-src-utils: bump version; cross build support.

This commit is contained in:
Juan RP 2013-02-21 22:31:50 +01:00
parent 462bf16419
commit b2c804cbf7

View file

@ -1,10 +1,8 @@
# Template build file for 'xbps-src-utils'.
pkgname=xbps-src-utils
version=20130128
version=20130221
revision=1
homepage="https://github.com/davehome/xbps-src-utils"
build_style=configure
configure_args="--prefix=/usr --etcdir=/etc"
makedepends="git pkg-config flex libxbps-devel>=0.19"
short_desc="Various tools for xbps-src in C (like repo-checkvers)"
maintainer="davehome <davehome@redthumb.info.tm>"
@ -19,11 +17,29 @@ long_desc="
nofetch=yes
noextract=yes
disable_parallel_build=yes
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
makedepends="git pkg-config flex"
crossmakedepends="libfl-devel libxbps-devel"
fi
do_fetch() {
local url="git://github.com/davehome/xbps-src-utils.git"
msg_normal " Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
cd ${pkgname}-${version} && git checkout 0f439306177ab7f0c20d542a8c1552b95929e3e9
}
do_configure() {
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
_pcenv="env PKG_CONFIG_LIBDIR=/usr/$XBPS_CROSS_TRIPLET/lib/pkgconfig"
fi
${_pcenv} ./configure --prefix=/usr --etcdir=/etc
}
do_build() {
make
}
do_install() {
make DESTDIR=${DESTDIR} install
}