diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..239323652e47 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Patrik Bachan <patrikbachan at gmail dot com> +pkgname=serialplot-hg +_pkgname=serialplot +pkgver=788+.0fba5e1a3d2e+ +pkgrel=1 +pkgdesc="Small and simple software for plotting data from serial port in realtime" +arch=('i686' 'x86_64') +url="https://bitbucket.org/hyOzd/serialplot" +license=('GPL3') +depends=('qwt' 'qt5-base' 'qt5-serialport' 'hicolor-icon-theme') +makedepends=('mercurial' 'cmake') +provides=('serialplot') +conflicts=('serialplot') +source=('hg+https://bitbucket.org/hyOzd/serialplot') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + echo $(hg identify -n).$(hg identify -i) +} + +prepare() { + cd "$srcdir/$_pkgname" + #fix wrong library name in cmake script + sed -i -e 's/qwt-qt5/qwt/g' cmake/modules/FindQwt.cmake + #disable update checking, otherwise app crashes + sed -i -e 's/if (isChecking()) return/return/g' src/updatechecker.cpp + #disable custom floatswap (erase header file contents) + echo "" > src/floatswap.h +} + +build() { + cd "$srcdir/$_pkgname" + mkdir build + cd build + cmake -DBUILD_QWT=false -DCMAKE_INSTALL_PREFIX=/usr .. + make +} +package() { + cd "$srcdir/$_pkgname" + cd build + make DESTDIR="${pkgdir}" install +} |