mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
65 lines
1.5 KiB
Bash
65 lines
1.5 KiB
Bash
#
|
||
# 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
|
||
pkgver=20110407
|
||
pkgrel=1
|
||
pkgdesc="Akabei’s Client"
|
||
url="http://gitorious.org/chakra/akabeiclient"
|
||
license="GPL"
|
||
arch=('i686' 'x86_64')
|
||
depends=('sqlite3' 'qt' 'libarchive' "akabeicore=${pkgver}" 'kdepimlibs')
|
||
makedepends=('cmake')
|
||
options=('!splithdr' 'splitdbg')
|
||
source=("http://chakra-project.org/sources/${pkgname}/${pkgname}-${pkgver}-${pkgrel}.tar.xz")
|
||
|
||
md5sums=('5e998e6552e00b6dd65ca67c89627c60')
|
||
|
||
groups=('akabei')
|
||
|
||
|
||
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
|
||
}
|
||
|
||
#
|
||
# build function
|
||
#
|
||
build()
|
||
{
|
||
cd "${srcdir}/$pkgname"
|
||
|
||
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
|
||
}
|
||
|
||
package()
|
||
{
|
||
cd "${srcdir}/$pkgname"
|
||
msg "Make successful, installing..."
|
||
make DESTDIR=$startdir/pkg install || return 1
|
||
|
||
# remove nasty files
|
||
find $startdir/pkg/ -name ".git" -type d -exec rm -fr {} +
|
||
} |