2013-12-18 02:41:12 +08:00
|
|
|
|
# Maintainer (i686): Phil Miller <philm@chakra-project[dog]org>
|
|
|
|
|
# Maintainer (x86_64): Manuel Tortosa <manutortosa@chakra-project@org>
|
2010-07-12 02:21:34 +08:00
|
|
|
|
|
2013-12-18 02:36:04 +08:00
|
|
|
|
# Include global configuration
|
2010-07-12 02:21:34 +08:00
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
|
|
|
|
|
pkgname=akabeiclient
|
2011-04-07 23:35:05 +08:00
|
|
|
|
pkgver=20110407
|
2010-07-12 02:21:34 +08:00
|
|
|
|
pkgrel=1
|
2010-07-12 02:22:51 +08:00
|
|
|
|
pkgdesc="Akabei’s Client"
|
2010-07-12 02:21:34 +08:00
|
|
|
|
url="http://gitorious.org/chakra/akabeiclient"
|
|
|
|
|
license="GPL"
|
|
|
|
|
arch=('i686' 'x86_64')
|
2011-04-07 23:35:05 +08:00
|
|
|
|
depends=('sqlite3' 'qt' 'libarchive' "akabeicore=${pkgver}" 'kdepimlibs')
|
2010-07-12 02:21:34 +08:00
|
|
|
|
makedepends=('cmake')
|
2013-07-24 08:15:53 +08:00
|
|
|
|
options=('!header' 'debug')
|
2011-04-07 23:35:05 +08:00
|
|
|
|
source=("http://chakra-project.org/sources/${pkgname}/${pkgname}-${pkgver}-${pkgrel}.tar.xz")
|
|
|
|
|
|
|
|
|
|
md5sums=('5e998e6552e00b6dd65ca67c89627c60')
|
2010-07-12 02:21:34 +08:00
|
|
|
|
|
2011-04-07 23:35:05 +08:00
|
|
|
|
groups=('akabei')
|
2010-07-12 02:21:34 +08:00
|
|
|
|
|
2011-04-07 23:35:05 +08:00
|
|
|
|
|
|
|
|
|
mksource() {
|
|
|
|
|
rm -vRf ${pkgname}
|
|
|
|
|
git clone git://gitorious.org/chakra/${pkgname}.git
|
|
|
|
|
rm -vRf ${pkgname}/.git
|
|
|
|
|
pushd ${pkgname}
|
|
|
|
|
popd
|
|
|
|
|
tar -cvJf ${pkgname}-${pkgver}-${pkgrel}.tar.xz ${pkgname}/*
|
|
|
|
|
md5sum ${pkgname}-${pkgver}-${pkgrel}.tar.xz
|
|
|
|
|
}
|
2010-07-12 02:21:34 +08:00
|
|
|
|
|
2013-12-18 02:36:04 +08:00
|
|
|
|
|
2010-07-12 02:21:34 +08:00
|
|
|
|
# build function
|
2013-12-18 02:36:04 +08:00
|
|
|
|
|
2010-07-12 02:21:34 +08:00
|
|
|
|
build()
|
|
|
|
|
{
|
2011-04-07 23:35:05 +08:00
|
|
|
|
cd "${srcdir}/$pkgname"
|
2010-07-12 02:21:34 +08:00
|
|
|
|
|
|
|
|
|
cmake . -DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=${_build_type} \
|
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
2014-01-13 00:57:44 +08:00
|
|
|
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
2010-07-12 02:21:34 +08:00
|
|
|
|
|
|
|
|
|
msg "Starting make..."
|
2014-01-13 00:57:44 +08:00
|
|
|
|
make
|
2011-04-07 23:35:05 +08:00
|
|
|
|
}
|
2010-07-12 02:21:34 +08:00
|
|
|
|
|
2011-04-07 23:35:05 +08:00
|
|
|
|
package()
|
|
|
|
|
{
|
|
|
|
|
cd "${srcdir}/$pkgname"
|
2010-07-12 02:21:34 +08:00
|
|
|
|
msg "Make successful, installing..."
|
2014-01-13 00:57:44 +08:00
|
|
|
|
make DESTDIR=$startdir/pkg install
|
2010-07-12 02:21:34 +08:00
|
|
|
|
|
|
|
|
|
# remove nasty files
|
|
|
|
|
find $startdir/pkg/ -name ".git" -type d -exec rm -fr {} +
|
2013-07-22 19:04:38 +08:00
|
|
|
|
}
|