Projekty/Wsparcie > POLAUR
KDE Applications 14.12
pavbaranov:
VI. Kanagram (KF5)
UWAGA: Najpierw tworzymy i instalujemy paczki kdeedu-data oraz libkeduvocdocument (stosowne pliki poniżej) w podanej zresztą kolejności, czyli najpierw kdeedu-data, potem libkeduvocdocument
PKGBUILD
--- Kod: ---# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=kanagram
pkgver=14.12.0
pkgrel=1
pkgdesc="Letter Order Game"
url="http://kde.org/applications/education/kanagram/"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdeedu')
depends=('libkeduvocdocument' 'kdeclarative' 'knewstuff')
makedepends=('extra-cmake-modules' 'kdoctools' 'python')
replaces=('kdeedu-kanagram')
conflicts=('kdeedu-kanagram')
install=${pkgname}.install
source=("http://download.kde.org/stable/applications/${pkgver}/src/kanagram-${pkgver}.tar.xz")
sha1sums=('cac6f5c35b083a20b1e0e9e807acd4eb55033871')
build() {
cd "${srcdir}"
mkdir build
cd build
cmake ../kanagram-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONF_INSTALL_DIR=/etc
make
}
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
}
--- Koniec kodu ---
kanagram.install
--- Kod: ---post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
--- Koniec kodu ---
VII. kdeedu-data
PKGBUILD
--- Kod: ---# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=kdeedu-data
pkgver=14.12.0
pkgrel=1
pkgdesc="Common data for KDE Edu applications"
url="http://kde.org/applications/education"
arch=('any')
license=('GPL' 'LGPL' 'FDL')
makedepends=('extra-cmake-modules')
conflicts=('libkdeedu<14')
source=("http://download.kde.org/stable/applications/${pkgver}/src/$pkgname-${pkgver}.tar.xz")
sha1sums=('bf2bac14684690463d137f4f79428ff01705ece2')
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../$pkgname-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
}
--- Koniec kodu ---
VIII. libkdeduvocdocument
PKGBUILD
--- Kod: --- GNU nano 2.2.6 Plik: PKGBUILD
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=libkeduvocdocument
pkgver=14.12.0
pkgrel=1
pkgdesc="Common libraries for KDE Edu applications"
url="http://kde.org/applications/education"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
depends=('kio' 'kdeedu-data')
makedepends=('extra-cmake-modules' 'kdoctools' 'python')
source=("http://download.kde.org/stable/applications/${pkgver}/src/$pkgname-${pkgver}.tar.xz")
sha1sums=('91a252cd7977d2da60dbc3f4be7affe88b911106')
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../$pkgname-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
}
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
}
--- Koniec kodu ---
pavbaranov:
IX. KHangman (KF5)
UWAGA: Zbudowanie wymaga uprzedniego zbudowania i instalacji w systemie paczki libkdevocdocument, której skrypty dostępne są w pkt. VIII powyżej: http://www.archlike.darmowefora.pl/index.php/topic,173.msg617.html#msg617
PKGBUILD
--- Kod: ---# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=khangman
pkgver=14.12.0
pkgrel=1
pkgdesc="Hangman Game"
url="http://kde.org/applications/education/khangman/"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdeedu')
depends=('libkeduvocdocument' 'knewstuff')
makedepends=('extra-cmake-modules' 'kdoctools' 'python')
replaces=('kdeedu-khangman')
conflicts=('kdeedu-khangman')
install=${pkgname}.install
source=("http://download.kde.org/stable/applications/${pkgver}/src/khangman-${pkgver}.tar.xz")
sha1sums=('02977e97c335db8e5607774bbe219dc53dd61e7c')
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../khangman-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DSYSCONF_INSTALL_DIR=/etc
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
--- Koniec kodu ---
khangman.install
--- Kod: ---post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
--- Koniec kodu ---
pavbaranov:
X. Kig (KF5)
PKGBUILD
--- Kod: ---# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=kig
pkgver=14.12.0
pkgrel=1
pkgdesc="Interactive Geometry"
url="http://kde.org/applications/education/kig/"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdeedu')
depends=('ktexteditor' 'kdelibs4support')
makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'boost')
replaces=('kdeedu-kig')
conflicts=('kdeedu-kig')
install=${pkgname}.install
source=("http://download.kde.org/stable/applications/${pkgver}/src/kig-${pkgver}.tar.xz")
sha1sums=('7e7ed0fdd6f0babbca9dde8e6138aafebb8cdfe0')
prepare() {
mkdir -p build
# https://bugs.kde.org/show_bug.cgi?id=341499
sed -e 's|Exec=kig %U %i -caption %c|Exec=kig %U|' -i kig-$pkgver/kig/kig.desktop
}
build() {
cd build
cmake ../kig-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
# Use the python2 executable
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' "${pkgdir}"/usr/bin/pykig.py
}
--- Koniec kodu ---
kig.install
--- Kod: ---post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
--- Koniec kodu ---
pavbaranov:
XI. Parley (KF5)
UWAGA: Zbudowanie paczki wymaga uprzedniej budowy paczki libkeduvocdocument przedstawionej w pkt VIII powyżej http://www.archlike.darmowefora.pl/index.php/topic,173.msg617.html#msg617
PKGBUILD
--- Kod: ---# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=parley
pkgver=14.12.0
pkgrel=1
pkgdesc="Vocabulary Trainer"
url="http://kde.org/applications/education/parley/"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdeedu')
depends=('kross' 'knewstuff' 'libkeduvocdocument' 'khtml' 'qt5-multimedia')
makedepends=('extra-cmake-modules' 'kdoctools' 'python')
replaces=('kdeedu-parley')
conflicts=('kdeedu-parley')
install=${pkgname}.install
source=("http://download.kde.org/stable/applications/${pkgver}/src/parley-${pkgver}.tar.xz")
sha1sums=('b7e66f843ec6bc543ce24a6fd561c9e7f437f403')
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../parley-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONF_INSTALL_DIR=/etc
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
# conflicts with oxygen-icons
# rm "$pkgdir"/usr/share/icons/oxygen/*/actions/edit-clear.png
}
--- Koniec kodu ---
parley.install
--- Kod: ---post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
--- Koniec kodu ---
pavbaranov:
XII. Kapptemplate (KF5)
PKGBUILD
--- Kod: ---# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=kapptemplate
pkgver=14.12.0
pkgrel=1
pkgdesc='KDE Template Generator'
url='http://kde.org/applications/development/kapptemplate/'
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdesdk')
depends=('kio')
makedepends=('extra-cmake-modules' 'kdoctools' 'python')
replaces=('kdesdk-kapptemplate')
conflicts=('kdesdk-kapptemplate')
install=${pkgname}.install
source=("http://download.kde.org/stable/applications/${pkgver}/src/kapptemplate-${pkgver}.tar.xz")
sha1sums=('9f3309845fa8afb51cd3e5de8f519f67ab7bc24a')
build() {
mkdir build
cd build
cmake ../kapptemplate-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
}
--- Koniec kodu ---
kapptemplate.install
--- Kod: ---post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
--- Koniec kodu ---
Nawigacja
[#] Następna strona
Idź do wersji pełnej