mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 22:37:13 +08:00
48 lines
1.3 KiB
Bash
48 lines
1.3 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=tribe-partitionmanager
|
|
pkgver=0.2.1017
|
|
pkgrel=1
|
|
pkgdesc="Tribe's partitionmanager"
|
|
url="http://git.chakra-project.org/chakra/"
|
|
license="GPL"
|
|
arch=('i686' 'x86_64')
|
|
depends=('kdebase-workspace' 'parted>=2.3' 'e2fsprogs' 'libatasmart')
|
|
replaces=('kdemod-tribe-partitionmanager')
|
|
makedepends=('cmake' 'automoc4' 'pkgconfig')
|
|
conflicts=('kdemod-tribe-partitionmanager' 'chakra-libpartitionmanager')
|
|
groups=('kde-uninstall')
|
|
source=("http://chakra-project.org/sources/tribe/tribe-0.2.3.tar.gz")
|
|
md5sums=('f8e7c14e1817bde635a69494cdd4d7ad')
|
|
|
|
#
|
|
# build function
|
|
#
|
|
build()
|
|
{
|
|
cd "${srcdir}/chakra-tribe/lib/pm/"
|
|
|
|
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
|
|
|
|
msg "Make successful, installing..."
|
|
make DESTDIR=$startdir/pkg install || return 1
|
|
|
|
# remove nasty files
|
|
find $startdir/pkg/ -name ".git" -type d -exec rm -fr {} +
|
|
} |