Add nutsnbolts-hg package.

This commit is contained in:
Alexpux
2014-04-01 12:27:29 +04:00
parent d9c6a3660c
commit 73f23dbefd

View File

@@ -0,0 +1,53 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=nutsnbolts
_mingw_suff=mingw-w64-${CARCH}
pkgname="${_mingw_suff}-${_realname}-hg"
pkgver=r153.b92bf74dc55f
pkgrel=1
pkgdesc="Extension library for Coin that contains various nuts and bolts (mingw-w64)"
arch=('any')
license=('BSD')
depends=("${_mingw_suff}-coin3d")
makedepends=("mercurial" "${_mingw_suff}-cmake" "${_mingw_suff}-gcc")
provides=("${_mingw_suff}-${_realname}")
conflicts=("${_mingw_suff}-${_realname}")
url=('https://bitbucket.org/Coin3D/dime')
source=("${_realname}"::"hg+https://bitbucket.org/Alexpux/nutsnbolts"
#"hg+https://bitbucket.org/Alexpux/coincodeshare"
)
options=(!strip staticlibs)
md5sums=('SKIP'
#'SKIP'
)
pkgver() {
cd "$srcdir/$_realname"
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}
prepare() {
cd ${srcdir}/${_realname}
}
build() {
#export lt_cv_deplibs_check_method='pass_all'
[[ -d "${srcdir}/build-${MINGW_CHOST}" ]] && rm -rf ${srcdir}/build-${MINGW_CHOST}
mkdir ${srcdir}/build-${MINGW_CHOST}
cd ${srcdir}/build-${MINGW_CHOST}
../"${_realname}"/configure \
--prefix=${MINGW_PREFIX} \
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
--enable-shared \
--disable-static \
--enable-optimization \
--disable-debug \
--with-coin=${MINGW_PREFIX}
make
}
package() {
cd "${srcdir}/build-${MINGW_CHOST}"
make DESTDIR=${pkgdir} install
}