mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 06:47:15 +08:00
76 lines
2.8 KiB
Bash
76 lines
2.8 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.2
|
|
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://chakra-project.org/sources/$pkgname/appset-qt-oxygen-icons.tar.xz
|
|
http://chakra-project.org/sources/$pkgname/$pkgname-0.4.2-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.4.1.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
|
|
)
|
|
md5sums=(672dc9475c94baf614dd12922782c522
|
|
87f5f278e3fe67ed2cd6165c2835d81b
|
|
cb5b8d0889a1a3b2007faa8636388baf
|
|
#8c3833816b9270c175636a7bc7fce544 # appset-qt_ca.0.4.1.tar.gz
|
|
#275ce0fe7db802558340c5c234a66249 # appset-qt_de-0.4.1.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
|
|
)
|
|
|
|
build() {
|
|
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.2-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
|
|
|
|
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"
|
|
}
|