mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
adding new package from ccr kdev-python, corrected .desktop for imagewriter, called for non existing xdg-su
This commit is contained in:
parent
3761f1d101
commit
7788b0a002
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
pkgname=imagewriter
|
pkgname=imagewriter
|
||||||
pkgver=1.10
|
pkgver=1.10
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
_opensuse_rel=1.1
|
_opensuse_rel=1.1
|
||||||
pkgdesc="SUSE Studio Imagewriter"
|
pkgdesc="SUSE Studio Imagewriter"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
@ -14,8 +14,10 @@ license=('GPLv2')
|
|||||||
depends=('qt')
|
depends=('qt')
|
||||||
provides=('imagewriter')
|
provides=('imagewriter')
|
||||||
screenshot=("http://upload.wikimedia.org/wikipedia/en/1/1e/SUSE_Studio_ImageWriter.png")
|
screenshot=("http://upload.wikimedia.org/wikipedia/en/1/1e/SUSE_Studio_ImageWriter.png")
|
||||||
source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/imagewriter-${pkgver}-${_opensuse_rel}.src.rpm")
|
source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/imagewriter-${pkgver}-${_opensuse_rel}.src.rpm"
|
||||||
md5sums=('2358d1805d74f1d127ce80ae3ed3c8dc')
|
'imagewriter.desktop')
|
||||||
|
md5sums=('2358d1805d74f1d127ce80ae3ed3c8dc'
|
||||||
|
'81df0c7c5f744d6a24413a37f6e6ecb6')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}"
|
cd "${srcdir}"
|
||||||
@ -29,4 +31,6 @@ build() {
|
|||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
make INSTALL_ROOT="${pkgdir}" install
|
make INSTALL_ROOT="${pkgdir}" install
|
||||||
|
rm "$pkgdir/usr/share/applications/imagewriter.desktop"
|
||||||
|
install -m 644 -p ${srcdir}/imagewriter.desktop ${pkgdir}/usr/share/applications/
|
||||||
}
|
}
|
10
imagewriter/imagewriter.desktop
Normal file
10
imagewriter/imagewriter.desktop
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Categories=System;Utility;Archiving;
|
||||||
|
X-KDE-RootOnly=true
|
||||||
|
Exec=imagewriter %F
|
||||||
|
Icon=imagewriter
|
||||||
|
Name=SUSE Studio Imagewriter
|
||||||
|
GenericName=USB key writer
|
||||||
|
X-KDE-SubstituteUID=true
|
||||||
|
Version=1.0
|
40
kdev-python/PKGBUILD
Normal file
40
kdev-python/PKGBUILD
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
|
||||||
|
# contirbutor Jakub Kozisek <nodevel at gmail dot com>
|
||||||
|
|
||||||
|
pkgname=kdev-python
|
||||||
|
pkgver=1.4.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='Python plugin for KDevelop - stable version'
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://projects.kde.org/projects/playground/devtools/plugins/kdev-python"
|
||||||
|
license=('GPL')
|
||||||
|
groups=('kde' 'kdevelop-plugins')
|
||||||
|
depends=('kdevelop')
|
||||||
|
makedepends=('kdevelop-pg-qt' 'cmake' 'automoc4')
|
||||||
|
conflicts=('kdevelop-python-beta' 'kdevelop-python')
|
||||||
|
replaces=('kdevelop-python-beta' 'kdevelop-python')
|
||||||
|
provides=('kdevelop-python')
|
||||||
|
source=("http://download.kde.org/stable/kdevelop/$pkgname/$pkgver/src/$pkgname-v$pkgver.tar.bz2")
|
||||||
|
sha256sums=('8743844c6bcf09b3f9db05891539973633049470eb7c046b75b3cfe4542da1e2')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir/$pkgname-v$pkgver"
|
||||||
|
sed -i 's|#!.*python$|&2|' python-src/Parser/asdl_c.py
|
||||||
|
|
||||||
|
mkdir -p "$srcdir/build"
|
||||||
|
cd "$srcdir/build"
|
||||||
|
|
||||||
|
cmake "../$pkgname-v$pkgver" \
|
||||||
|
-DCMAKE_SKIP_RPATH=ON \
|
||||||
|
-DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
|
||||||
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
|
||||||
|
make parser
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/build"
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user