desktop/tribe/PKGBUILD

73 lines
2.2 KiB
Bash
Raw Normal View History

2010-06-07 19:05:15 +08:00
pkgname=tribe
2015-02-24 07:15:13 +08:00
pkgver=2015.03
2015-03-03 04:55:38 +08:00
_rls_notes=20150302
pkgrel=2
2014-09-08 05:50:22 +08:00
_codename=Euler
2010-06-07 19:05:15 +08:00
pkgdesc="Tribe - Chakra LiveCD Installer"
2015-02-24 07:15:13 +08:00
url="http://gitorious.org/chakra/tribe/"
2010-06-07 19:05:15 +08:00
license="GPL"
arch=('x86_64')
depends=('kdelibs' 'kdeedu-marble' 'squashfs-tools' 'partitionmanager>=1:1.1.0' 'grub>=2.02.beta2'
2013-05-11 05:05:23 +08:00
'rsync' 'mkinitcpio-nfs-utils' 'ntfs-3g' 'libpwquality')
2012-02-01 12:11:23 +08:00
makedepends=('cmake' 'kde-workspace' 'automoc4')
2014-01-22 05:33:43 +08:00
options=('debug')
2014-05-04 07:02:21 +08:00
_gitname=tribe
_gitsha=6dbdb8b
2014-05-04 07:02:21 +08:00
source=("$pkgname"::"git://gitorious.org/chakra/${_gitname}.git#commit=${_gitsha}"
"http://chakra.sourceforge.net/sources/tribe/RELEASE_NOTES_${_rls_notes}.html"
2014-11-09 22:10:57 +08:00
"launch-tribe.sh"
"fix-for-testing.patch")
2014-05-04 07:02:21 +08:00
md5sums=('SKIP'
2015-03-03 04:55:38 +08:00
'65fad7c4077fe36fd466500e591c1ebc'
2014-11-09 22:10:57 +08:00
'e31855da237a2c8029774831b3c04685'
2014-12-10 11:31:00 +08:00
'42b862a91b7d0c3708faca32926252ce')
2012-08-10 06:56:27 +08:00
2010-06-07 19:05:15 +08:00
groups=('kde-uninstall')
2012-03-06 17:59:48 +08:00
categories=('system')
2010-06-07 19:05:15 +08:00
install=tools-tribe.install
2014-10-28 23:42:02 +08:00
prepare() {
cd "$srcdir/$_gitname"
# not yet upstream'ed patch
2014-11-09 22:10:57 +08:00
patch -Np1 -i ../fix-for-testing.patch
2014-10-28 23:42:02 +08:00
}
2013-02-06 04:22:00 +08:00
build() {
2014-05-04 07:02:21 +08:00
cd "$srcdir/$_gitname"
2011-05-31 07:45:59 +08:00
# proper bootmnt folder
2014-05-04 07:02:21 +08:00
sed -i -e "s/@ARCH@/${CARCH}/g" "src/config-tribe.h.cmake"
2010-06-07 19:05:15 +08:00
# add pkgver to tribe
2014-05-04 07:02:21 +08:00
sed -i -e "s~source build/from git~Build: ${pkgver} ($_codename)~g" "src/config-tribe.h.cmake"
2013-02-18 06:01:21 +08:00
sed -i -e "s~code-name~$_codename~g" "scripts/postinstall-functions/01-job-initialize-target"
sed -i -e "s~chakra-version~${pkgver}~g" "scripts/postinstall-functions/01-job-initialize-target"
# temporarily hack on grub, need to merge upstream
sed -i -e "s~--skip-resume~~g" "scripts/postinstall-functions/20-job-install-grub2"
2014-05-04 07:02:21 +08:00
mkdir "$_gitname-build"
cd "$_gitname-build"
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
2010-12-10 03:06:08 +08:00
-DCMAKE_BUILD_TYPE=Release \
2010-06-07 19:05:15 +08:00
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
2010-06-07 19:05:15 +08:00
msg "Starting make..."
make
2011-01-09 22:40:47 +08:00
}
2010-06-07 19:05:15 +08:00
2013-02-06 04:22:00 +08:00
package() {
2014-05-04 07:02:21 +08:00
cd "$srcdir/$_gitname/$_gitname-build"
2010-06-07 19:05:15 +08:00
msg "Make successful, installing..."
make DESTDIR=${pkgdir} install
2012-02-01 12:11:23 +08:00
install -Dm755 ${srcdir}/launch-tribe.sh \
${pkgdir}/usr/bin/launch-tribe.sh
2012-08-13 23:09:57 +08:00
cp -vf ${srcdir}/RELEASE_NOTES_${_rls_notes}.html $pkgdir/usr/share/tribe/config/RELEASE_NOTES.html
2010-06-07 19:05:15 +08:00
# remove nasty files
find ${pkgdir}/ -name ".git" -type d -exec rm -fr {} +
}