diff options
author | Michel Zou | 2020-11-01 21:49:43 +0100 |
---|---|---|
committer | Michel Zou | 2020-11-01 21:49:43 +0100 |
commit | a282ce6ad21842ed40aca6fa2d5677879356e168 (patch) | |
tree | c3bdbee5a8f2c277f185f984bf19ba9b9d89d79a | |
download | aur-a282ce6ad21842ed40aca6fa2d5677879356e168.tar.gz |
6.2
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e3e5dc4c68ed --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = qwt-qt6-svn + pkgdesc = Qt Widgets for Technical Applications + pkgver = 6.2.0 + pkgrel = 1 + url = https://qwt.sourceforge.io/ + arch = x86_64 + license = custom:qwt + makedepends = qt6-tools + makedepends = subversion + depends = qt6-base + depends = qt6-svg + optdepends = qt6-tools: For Designer plugin + source = svn+https://svn.code.sf.net/p/qwt/code/branches/qwt-6.2 + sha512sums = SKIP + +pkgname = qwt-qt6-svn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dbbb34638ea0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +pkgname=qwt-qt6-svn +pkgver=6.2.0 +pkgrel=1 +pkgdesc='Qt Widgets for Technical Applications' +url='https://qwt.sourceforge.io/' +arch=('x86_64') +depends=('qt6-base' 'qt6-svg') +optdepends=('qt6-tools: For Designer plugin') +makedepends=('qt6-tools' 'subversion') +license=("custom:qwt") +source=("svn+https://svn.code.sf.net/p/qwt/code/branches/qwt-6.2") +sha512sums=('SKIP') + +prepare() { + cd qwt-6.2 + + sed -e '/^\s*QWT_INSTALL_PREFIX/ s|=.*|= /usr|' \ + -e '/^QWT_INSTALL_DOCS/ s|/doc|/share/doc/qwt|' \ + -e '/^QWT_INSTALL_HEADERS/ s|include|&/qwt|' \ + -e '/^QWT_INSTALL_PLUGINS/ s|plugins/designer|lib/qt/&|' \ + -e '/^QWT_INSTALL_FEATURES/ s|features|lib/qt/mkspecs/&|' \ + -i qwtconfig.pri +} + +build() { + cd qwt-6.2 + qmake-qt6 qwt.pro + make +} + +package() { + cd qwt-6.2 + make INSTALL_ROOT="${pkgdir}" install + + mv "${pkgdir}/usr/share/doc/qwt/man" "${pkgdir}/usr/share" + install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |