desktop/tools-pkg-akabeicore/PKGBUILD

57 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-05-31 02:58:56 +08:00
2013-12-18 02:36:04 +08:00
# Include global configuration
2010-05-31 02:58:56 +08:00
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=akabeicore
2011-04-07 23:35:05 +08:00
pkgver=20110407
2010-05-31 02:58:56 +08:00
pkgrel=1
pkgdesc="Akabeis core library"
2010-07-12 02:21:34 +08:00
url="http://gitorious.org/chakra/akabeicore"
2010-05-31 02:58:56 +08:00
license="GPL"
arch=('i686' 'x86_64')
depends=('sqlite3' 'qt' 'libarchive')
makedepends=('cmake')
options=('debug')
2011-04-07 23:35:05 +08:00
source=("http://chakra-project.org/sources/${pkgname}/${pkgname}-${pkgver}-${pkgrel}.tar.xz")
md5sums=('0fd0cd7f35ff95ad5ffa7385b10ef7b7')
groups=('akabei')
2010-05-31 02:58:56 +08:00
2011-04-07 23:35:05 +08:00
# create tarball: source PKGBUILD && mksource
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-05-31 02:58:56 +08:00
2013-12-18 02:36:04 +08:00
2010-05-31 02:58:56 +08:00
# build function
2013-12-18 02:36:04 +08:00
2010-05-31 02:58:56 +08:00
build()
{
2011-04-07 23:35:05 +08:00
cd "${srcdir}/$pkgname"
2010-05-31 02:58:56 +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-05-31 02:58:56 +08:00
msg "Starting make..."
make
2011-04-07 23:35:05 +08:00
}
2010-05-31 02:58:56 +08:00
2011-04-07 23:35:05 +08:00
package()
{
cd "${srcdir}/$pkgname"
2010-05-31 02:58:56 +08:00
msg "Make successful, installing..."
make DESTDIR=$startdir/pkg install
2010-05-31 02:58:56 +08:00
# remove nasty files
find $startdir/pkg/ -name ".git" -type d -exec rm -fr {} +
}