mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 15:14:36 +08:00
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
source ../qt5.conf
|
|
|
|
pkgname=qt5-examples
|
|
pkgver=${QSubVersion}
|
|
pkgrel=3
|
|
arch=('any')
|
|
url='http://qt-project.org/'
|
|
license=('GPL3' 'LGPL' 'FDL' 'custom')
|
|
pkgdesc='Examples and demos from qt5 documentation'
|
|
depends=('qt5-doc')
|
|
makedepends=()
|
|
groups=('qt5')
|
|
source=("${QSingleServer}/qt-everywhere-opensource-src-${QVersion}.tar.xz")
|
|
md5sums=( $(getSum "qt-everywhere") )
|
|
|
|
package() {
|
|
_base="$pkgdir"/usr/share/doc/qt5/examples
|
|
|
|
# The various example dirs have conflicting .pro files, but
|
|
# QtCreator requires them to be in the same top-level directory.
|
|
# Matching the Qt5 installer, only the qtbase project is kept.
|
|
mkdir -p $_base
|
|
cp $(getPkgName "qt-everywhere")/qtbase/examples/examples.pro $_base
|
|
|
|
_fdirs=$(find "$(getPkgName "qt-everywhere")" -maxdepth 2 -type d -name examples)
|
|
for _dir in $_fdirs; do
|
|
_mod=$(basename ${_dir%/examples})
|
|
|
|
if [ -e "$_dir/README" ]; then
|
|
cp $_dir/README $_dir/README.$_mod
|
|
fi
|
|
|
|
# Don't overwrite existing examples.pro file
|
|
mkdir $_base/$_mod
|
|
cp -rn $_dir/* $_base/$_mod
|
|
done
|
|
}
|