desktop/tools-pkg-akabeiclient/PKGBUILD

59 lines
1.4 KiB
Bash
Raw Normal View History

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="Akabeis 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')
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 \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
2010-07-12 02:21:34 +08:00
msg "Starting make..."
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..."
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 {} +
}