diff options
author | Christoph Haag | 2019-11-08 15:37:14 +0100 |
---|---|---|
committer | Christoph Haag | 2019-11-08 15:37:14 +0100 |
commit | 26a3ec528a3a84314f2d88feb6089f49928f1a00 (patch) | |
tree | 6751a8e0227312b2a809741ac604a12080987322 | |
download | aur-qt5-quick3d-git.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0e08b5bdd233 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = qt5-quick3d-git + pkgdesc = a high level 3D API for Qt Quick to introduce 3D content into Qt Quick applications + pkgver = r837.10f50fb + pkgrel = 1 + url = https://git.qt.io/annichol/qtquick3d/ + arch = x86_64 + groups = qt + groups = qt5 + license = GPL3 + depends = qt5-declarative + source = git+https://git.qt.io/annichol/qtquick3d.git + sha256sums = SKIP + +pkgname = qt5-quick3d-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..30e2a643df16 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer : haagch <christoph.haag@collabora.com> +# Contributor : bartus <arch-user-repoᘓbartus.33mail.com> +# Contributor : Felix Yan <felixonmars@archlinux.org> +# Contributor : Andrea Scarpino <andrea@archlinux.org> +# shellcheck disable=SC2034 + +pkgname=qt5-quick3d-git +pkgver=r837.10f50fb +pkgrel=1 +arch=('x86_64') +url='https://git.qt.io/annichol/qtquick3d/' +license=('GPL3') +pkgdesc='a high level 3D API for Qt Quick to introduce 3D content into Qt Quick applications' +depends=('qt5-declarative') +makedepends=() +groups=('qt' 'qt5') +source=("git+https://git.qt.io/annichol/qtquick3d.git") +sha256sums=('SKIP') + +pkgver() { + cd qtquick3d + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + mkdir -p build +} + +build() { + cd build + + qmake ../qtquick3d + make +} + +package() { + cd build + make INSTALL_ROOT="$pkgdir" install + + # Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$pkgdir/usr/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; +} |