2012-07-06 13:22:51 +00:00
|
|
|
# Template build file for 'xbps-src-utils'.
|
|
|
|
pkgname=xbps-src-utils
|
2013-02-21 21:31:50 +00:00
|
|
|
version=20130221
|
2012-08-09 07:00:29 +00:00
|
|
|
revision=1
|
2012-07-06 15:02:44 +00:00
|
|
|
homepage="https://github.com/davehome/xbps-src-utils"
|
2013-03-13 22:57:34 +00:00
|
|
|
makedepends="pkg-config flex libxbps-devel>=0.19"
|
2012-07-06 13:22:51 +00:00
|
|
|
short_desc="Various tools for xbps-src in C (like repo-checkvers)"
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
2012-07-31 06:32:45 +00:00
|
|
|
license="Simplified BSD"
|
2012-07-06 13:22:51 +00:00
|
|
|
long_desc="
|
|
|
|
Various tools for xbps-src in C (like repo-checkvers)
|
|
|
|
|
|
|
|
* The xbps-repo-checkvers program shows which XBPS binary packages need to be
|
|
|
|
rebuilt on your system by comparing the versions of the binary packages which
|
|
|
|
are available in the XBPS repositories registered in your xbps.conf with the
|
|
|
|
latest available versions of them in the source package tree."
|
|
|
|
|
|
|
|
nofetch=yes
|
|
|
|
noextract=yes
|
2013-02-21 21:31:50 +00:00
|
|
|
|
|
|
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
2013-03-13 22:57:34 +00:00
|
|
|
makedepends="pkg-config flex"
|
2013-02-21 21:31:50 +00:00
|
|
|
crossmakedepends="libfl-devel libxbps-devel"
|
|
|
|
fi
|
2012-07-06 13:22:51 +00:00
|
|
|
|
|
|
|
do_fetch() {
|
2012-07-06 15:02:44 +00:00
|
|
|
local url="git://github.com/davehome/xbps-src-utils.git"
|
2012-07-06 13:22:51 +00:00
|
|
|
msg_normal " Fetching source from $url ...\n"
|
|
|
|
git clone ${url} ${pkgname}-${version}
|
2013-02-21 21:31:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2012-07-06 13:22:51 +00:00
|
|
|
}
|