2010-07-12 02:21:34 +08:00
|
|
|
|
#
|
|
|
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
|
|
|
#
|
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# package info
|
|
|
|
|
#
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# build function
|
|
|
|
|
#
|
|
|
|
|
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 \
|
|
|
|
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' || return 1
|
|
|
|
|
|
|
|
|
|
msg "Starting make..."
|
|
|
|
|
make || return 1
|
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..."
|
|
|
|
|
make DESTDIR=$startdir/pkg install || return 1
|
|
|
|
|
|
|
|
|
|
# remove nasty files
|
|
|
|
|
find $startdir/pkg/ -name ".git" -type d -exec rm -fr {} +
|
2013-07-22 19:04:38 +08:00
|
|
|
|
}
|