diff options
author | Doug Newgard | 2018-02-23 14:54:46 -0600 |
---|---|---|
committer | Doug Newgard | 2018-02-23 14:54:46 -0600 |
commit | 1d7eb0629fe92649d66b6c0a10ff4be815a0fa4b (patch) | |
tree | 654e66a9696ea929117cee72cfd043beedc030ca | |
parent | 83b1f466b6839e846fb3222dd5554fe0a35612c7 (diff) | |
download | aur-1d7eb0629fe92649d66b6c0a10ff4be815a0fa4b.tar.gz |
Style and simplification
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 25 |
3 files changed, 21 insertions, 20 deletions
@@ -1,16 +1,16 @@ -# Generated by mksrcinfo v8 -# Fri Feb 12 20:18:48 UTC 2016 pkgbase = qextserialport - pkgdesc = Cross-platform serial port class libary for Qt. + pkgdesc = Cross-platform serial port class libary for Qt pkgver = 1.2rc pkgrel = 6 url = https://github.com/qextserialport/qextserialport arch = i686 arch = x86_64 license = MIT + depends = gcc-libs + depends = glibc depends = qt5-base source = qextserialport-1.2rc.tar.gz::https://github.com/qextserialport/qextserialport/archive/1.2rc.tar.gz - sha1sums = 2cd3ec6771b056db1bdf471517f8e20e8a4ecff2 + sha256sums = 1f1c068206af95c328b165e9ea31006e43faa6ee224aaec6aa0f72d2afa5f011 pkgname = qextserialport diff --git a/.gitignore b/.gitignore index 05c6d4d4c97b..71a9d16c2b38 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -* -!.gitignore -!.SRCINFO -!PKGBUILD +*~ +*/ +*.tar.* +*.log @@ -1,34 +1,35 @@ -# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com> +# Maintainer: Doug Newgard <scimmia at archlinux dot org> +# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com> # Contributor: Kosyak <ObKo@mail.ru> pkgname=qextserialport pkgver=1.2rc pkgrel=6 -pkgdesc="Cross-platform serial port class libary for Qt." +pkgdesc='Cross-platform serial port class libary for Qt' arch=('i686' 'x86_64') url='https://github.com/qextserialport/qextserialport' license=('MIT') -depends=('qt5-base') -source=("qextserialport-${pkgver}.tar.gz::https://github.com/qextserialport/qextserialport/archive/${pkgver}.tar.gz") -sha1sums=('2cd3ec6771b056db1bdf471517f8e20e8a4ecff2') +depends=('gcc-libs' 'glibc' 'qt5-base') +source=("$pkgname-$pkgver.tar.gz::https://github.com/qextserialport/qextserialport/archive/$pkgver.tar.gz") +sha256sums=('1f1c068206af95c328b165e9ea31006e43faa6ee224aaec6aa0f72d2afa5f011') prepare() { - mkdir -p build + mkdir -p $pkgname-$pkgver/build } build() { - cd build + cd $pkgname-$pkgver/build - qmake-qt5 "../qextserialport-${pkgver}" + qmake-qt5 .. make } package() { - make -C build INSTALL_ROOT="${pkgdir}" install + cd $pkgname-$pkgver - install -Dm644 "qextserialport-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/qextserialport/LICENSE" + make -C build INSTALL_ROOT="$pkgdir" install + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/qextserialport/" # Fix wrong path in prl files - find "${pkgdir}/usr/lib" -type f -name '*.prl' \ - -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \; + sed -i '/^QMAKE_PRL_BUILD_DIR/d' "$pkgdir/usr/lib/"*.prl } |