mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
pkgname=convertall
|
|
pkgver=0.6.0
|
|
pkgrel=1
|
|
pkgdesc="Unit conversion program (Qt)"
|
|
arch=('x86_64')
|
|
url="http://convertall.bellz.org/"
|
|
license=('GPL')
|
|
depends=('pyqt')
|
|
categories=('utils')
|
|
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz \
|
|
correctpaths.patch use-default-qt-style.patch convertall.desktop)
|
|
md5sums=('b68244fa83ccbdeaf223b9ad22399606'
|
|
'e4f5c5d58f728b292f625c38771d2779'
|
|
'595e958ffa448334becf73940d6303d9'
|
|
'aae44cb1f36847340411d77b1a6d00cd')
|
|
|
|
package() {
|
|
# patch executable to have the correct paths
|
|
patch -Np0 < $srcdir/correctpaths.patch || return 1
|
|
#patch to correct the qt style used
|
|
patch -Np0 < ${srcdir}/use-default-qt-style.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
|
|
}
|