mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 06:37:16 +08:00
21e070845a
appset: 0.5pre - waiting for translations
84 lines
3.3 KiB
Bash
84 lines
3.3 KiB
Bash
# Maintainer: Phil Miller <philm[at]chakra-project[dot]org>
|
|
# Committer: Simone Tobia <simone.tobia at gmail dot com>
|
|
# Translators: http://chakra-project.org/bbs/viewtopic.php?pid=29626#p29626
|
|
|
|
pkgname=appset-qt
|
|
pkgver=0.4.99
|
|
_pkgver=0.5.0pre
|
|
pkgrel=1
|
|
pkgdesc="An advanced and feature rich Package Manager Frontend"
|
|
arch=('i686' 'x86_64')
|
|
url="http://appset.sourceforge.net/"
|
|
license=('GPL2')
|
|
depends=('qt>=4.7')
|
|
optdepends=('ccr: For Community Repository support')
|
|
install=${pkgname}.install
|
|
source=(#http://sourceforge.net/projects/appset/files/appset-qt/0.4/$pkgver/$pkgname-$pkgver-sources.tar.gz
|
|
http://sourceforge.net/projects/appset/files/appset-qt/0.5/0.5.0/$pkgname-$_pkgver-sources.tar.gz
|
|
http://chakra-project.org/sources/$pkgname/appset-qt-oxygen-icons.tar.xz
|
|
http://chakra-project.org/sources/$pkgname/$pkgname-0.4.99-chakra.patch
|
|
#http://chakra-project.org/sources/$pkgname/appset-qt_ca-0.4.1.tar.gz
|
|
http://chakra-project.org/sources/$pkgname/appset-qt_de-0.5.0.tar.gz
|
|
#http://chakra-project.org/sources/$pkgname/appset-qt_el-0.4.1.tar.gz
|
|
#http://chakra-project.org/sources/$pkgname/appset-qt_es-0.4.1.tar.gz
|
|
#http://chakra-project.org/sources/$pkgname/appset-qt_fr-0.4.1.tar.gz
|
|
#http://chakra-project.org/sources/$pkgname/appset-qt_nl-0.4.1.tar.gz
|
|
#http://chakra-project.org/sources/$pkgname/appset-qt_pl-0.4.2.tar.gz
|
|
http://chakra-project.org/sources/$pkgname/appset-qt_zh-tw-0.4.4.tar.gz
|
|
)
|
|
md5sums=(fe36bcbe31602fab843e7b0676c5196e
|
|
87f5f278e3fe67ed2cd6165c2835d81b
|
|
f193b069c8ac4d392d0d1b6c9ca3469f
|
|
#8c3833816b9270c175636a7bc7fce544 # appset-qt_ca.0.4.1.tar.gz
|
|
6a0f0a7af86b518853533d046cdba069 # appset-qt_de-0.5.0.tar.gz
|
|
#b9ffe714c1c1d76a9df7f0784c9e62d5 # appset-qt_el.0.4.1.tar.gz
|
|
#033278244a74b198f386766abbb9fc50 # appset-qt_es.0.4.1.tar.gz
|
|
#676f758716610442b0ef873c1d2974f1 # appset-qt_fr.0.4.1.tar.gz
|
|
#2acb9e2ac0e6d75f3d97148a621a5539 # appset-qt_nl-0.4.1.tar.gz
|
|
#53efb5cc093a97ebeff33e1d25f05a76 # appset-qt_pl-0.4.2.tar.gz
|
|
03faf18f8994cd406607d5ab6b0f2f16 # appset-qt_zh-tw-0.4.4.tar.gz
|
|
)
|
|
|
|
build() {
|
|
#cd $srcdir/$pkgname-$pkgver-sources
|
|
cd $srcdir/$pkgname-$_pkgver-sources
|
|
# copy oxygen icons
|
|
cp -v ../*png Qt/AppSet-Qt
|
|
|
|
# patch it for Chakra GNU/Linux
|
|
patch -Np1 -i ${startdir}/src/$pkgname-0.4.99-chakra.patch
|
|
|
|
# add chakra translations (check upstream)
|
|
#patch -Np1 -i ${startdir}/src/add-spanish.patch
|
|
cp -v ../appsettray-qt*.ts Qt/AppSetTray-Qt
|
|
cp -v ../appset-qt*.ts Qt/AppSet-Qt
|
|
|
|
# check for updated strings
|
|
cd Qt/AppSet-Qt
|
|
lupdate *.cpp *.ui *.h -ts appset*-qt_*.ts
|
|
cd ../AppSetTray-Qt
|
|
lupdate *.cpp *.h -ts appsettay*-qt_*.ts
|
|
cd ../..
|
|
|
|
qmake PREFIX=/usr -Wnone
|
|
|
|
#localization
|
|
lrelease Qt/AppSet-Qt/*.ts
|
|
lrelease Qt/AppSetTray-Qt/*.ts
|
|
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
#cd $srcdir/$pkgname-$pkgver-sources
|
|
cd $srcdir/$pkgname-$_pkgver-sources
|
|
|
|
make INSTALL_ROOT="$pkgdir/" install
|
|
|
|
#helper daemon
|
|
install -m 755 -d "$pkgdir/etc/rc.d" || return 1
|
|
#install -m 755 "$srcdir/$pkgname-$pkgver-sources/AppSetHelper/appset-helper.sh" "$pkgdir/etc/rc.d/appset-helper"
|
|
install -m 755 "$srcdir/$pkgname-$_pkgver-sources/AppSetHelper/appset-helper.sh" "$pkgdir/etc/rc.d/appset-helper"
|
|
}
|
|
|