mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
Ports from testing
This commit is contained in:
parent
26dc1635c8
commit
bc21a74827
46
convertall/PKGBUILD
Normal file
46
convertall/PKGBUILD
Normal file
@ -0,0 +1,46 @@
|
||||
#
|
||||
# Apps Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgname=convertall
|
||||
pkgver=0.5.0
|
||||
pkgrel=1
|
||||
pkgdesc="Unit conversion program (Qt)"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://convertall.bellz.org/"
|
||||
license=('GPL')
|
||||
depends=('pyqt')
|
||||
source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz \
|
||||
correctpaths.patch convertall.desktop)
|
||||
md5sums=('96ea0910af63d2056fe87cee3aa7031e'
|
||||
'e4f5c5d58f728b292f625c38771d2779'
|
||||
'aae44cb1f36847340411d77b1a6d00cd')
|
||||
|
||||
build() {
|
||||
# patch executable to have the correct paths
|
||||
patch -Np0 < $srcdir/correctpaths.patch || return 1
|
||||
|
||||
# create install directories
|
||||
install -d $pkgdir/usr/{bin,share/pixmaps}
|
||||
|
||||
# copy files manually
|
||||
cp -rf $srcdir/ConvertAll/source $pkgdir/usr/share/$pkgname
|
||||
cp -rf $srcdir/ConvertAll/icons $pkgdir/usr/share/$pkgname
|
||||
cp -rf $srcdir/ConvertAll/doc $pkgdir/usr/share/$pkgname/help
|
||||
cp -rf $srcdir/ConvertAll/data $pkgdir/usr/share/$pkgname
|
||||
|
||||
# create symlink in /usr/bin
|
||||
ln -s /usr/share/$pkgname/$pkgname.py $pkgdir/usr/bin/$pkgname
|
||||
|
||||
# install desktop file
|
||||
install -Dm644 $srcdir/$pkgname.desktop \
|
||||
$pkgdir/usr/share/applications/$pkgname.desktop
|
||||
|
||||
# symlink icon in /usr/share/pixmaps
|
||||
ln -s /usr/share/$pkgname/icons/$pkgname.svg \
|
||||
$pkgdir/usr/share/pixmaps/$pkgname.svg
|
||||
}
|
14
convertall/convertall.desktop
Normal file
14
convertall/convertall.desktop
Normal file
@ -0,0 +1,14 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=ConvertAll
|
||||
Name[it]=ConvertAll
|
||||
GenericName=Unit Converter
|
||||
GenericName[it]=Convertitore di Unità
|
||||
Comment=Convert between many different units
|
||||
Comment[it]=Convertitore per molte unità di misura
|
||||
Icon=convertall
|
||||
Exec=convertall
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Science
|
||||
|
15
convertall/correctpaths.patch
Normal file
15
convertall/correctpaths.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- ConvertAll/source/convertall.py 2008-05-28 12:51:46.000000000 +0200
|
||||
+++ ConvertAll/source/convertall.py.new 2008-05-29 11:54:27.000000000 +0200
|
||||
@@ -17,9 +17,9 @@
|
||||
__version__ = '0.4.2'
|
||||
__author__ = 'Doug Bell'
|
||||
|
||||
-dataFilePath = None # modified by install script if required
|
||||
-helpFilePath = None # modified by install script if required
|
||||
-iconPath = None # modified by install script if required
|
||||
+dataFilePath = '/usr/share/convertall/data'
|
||||
+helpFilePath = '/usr/share/convertall/help'
|
||||
+iconPath = '/usr/share/convertall/icons'
|
||||
translationPath = 'translations'
|
||||
lang = ''
|
||||
|
@ -27,6 +27,4 @@ build() {
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr ../ || return 1
|
||||
make || return 1
|
||||
make DESTDIR=$pkgdir install || return 1
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
39
dnetstats/PKGBUILD
Normal file
39
dnetstats/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
#
|
||||
# Apps Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgname=dnetstats
|
||||
pkgver=1.2.6
|
||||
pkgrel=1
|
||||
pkgdesc="Graphic monitor for the network. Show the network stats and the netmap"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://checkppp.weebly.com/index.html"
|
||||
license=('GPL')
|
||||
depends=('qt')
|
||||
makedepends=('automoc4')
|
||||
source=("http://www.qt-apps.org/CONTENT/content-files/107467-DNetStats-v${pkgver}-release.tar.bz2"
|
||||
dnetstats.desktop)
|
||||
md5sums=('cd26a2af746019ddaef472607c3b6550'
|
||||
'4bb4b396ef1515700620f213d3f50b43')
|
||||
|
||||
build() {
|
||||
|
||||
cd $srcdir/DNetStats-v${pkgver}-release
|
||||
|
||||
/usr/bin/moc src/dialogimpl.h -o moc_dialogimpl.cpp
|
||||
/usr/bin/moc thread.h -o moc_thread.cpp
|
||||
/usr/bin/moc shutthread.h -o moc_shutthread.cpp
|
||||
/usr/bin/moc netthread.h -o moc_netthread.cpp
|
||||
|
||||
qmake || return 1
|
||||
make || return 1
|
||||
|
||||
install -Dm755 mythread ${pkgdir}/usr/bin/dnetstats || return 1
|
||||
install -Dm644 ../dnetstats.desktop ${pkgdir}/usr/share/applications/dnetstats.desktop|| return 1
|
||||
install -Dm644 resource/wp.png ${pkgdir}/usr/share/pixmaps/wp.png || return 1
|
||||
|
||||
}
|
17
dnetstats/dnetstats.desktop
Normal file
17
dnetstats/dnetstats.desktop
Normal file
@ -0,0 +1,17 @@
|
||||
# created 16:40:27 - 22/08/09
|
||||
|
||||
[Desktop Entry]
|
||||
Name=DNetStats
|
||||
Name[es]=DNetStats
|
||||
Name[it]=DNetStats
|
||||
GenericName=Network monitor
|
||||
GenericName[es]=Monitor de red
|
||||
GenericName[it]=Controllore di rete
|
||||
Comment=Network monitor
|
||||
Comment[es]=Monitor de red
|
||||
Comment[it]=Controllore di rete
|
||||
Exec=/usr/bin/dnetstats
|
||||
Icon=/usr/share/pixmaps/wp.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Network;Utility;
|
Loading…
Reference in New Issue
Block a user