Add WIP of soqt package.

This commit is contained in:
Alexpux
2014-04-01 12:25:14 +04:00
parent 4bfb6bbdc4
commit 2e2e17f3a6

View File

@@ -0,0 +1,59 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=soqt
_mingw_suff=mingw-w64-${CARCH}
pkgname="${_mingw_suff}-${_realname}-hg"
pkgver=r1937.06c521480698
pkgrel=1
pkgdesc="The glue between Coin & Qt (mingw-w64)"
arch=('any')
license=('BSD')
depends=("${_mingw_suff}-coin3d" "${_mingw_suff}-qt5")
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/soqt"
"hg+https://bitbucket.org/Alexpux/generalmsvcgeneration"
"hg+https://bitbucket.org/Alexpux/soanydata"
"hg+https://bitbucket.org/Alexpux/sogui"
)
options=(!strip staticlibs !makeflags)
md5sums=('SKIP'
'SKIP'
'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 \
--disable-loadlibrary \
--with-qt=${MINGW_PREFIX} \
--with-coin=${MINGW_PREFIX} \
--without-x
LC_ALL=C make -j1
}
package() {
cd "${srcdir}/build-${MINGW_CHOST}"
make DESTDIR=${pkgdir} install
}