[arch-commits] Commit in qhexedit2/repos (community-x86_64 community-x86_64/PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Thu Jun 9 14:57:42 UTC 2022


    Date: Thursday, June 9, 2022 @ 14:57:42
  Author: anthraxx
Revision: 1229682

archrelease: copy trunk to community-x86_64

Added:
  qhexedit2/repos/community-x86_64/
  qhexedit2/repos/community-x86_64/PKGBUILD
    (from rev 1229681, qhexedit2/trunk/PKGBUILD)

----------+
 PKGBUILD |   62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

Copied: qhexedit2/repos/community-x86_64/PKGBUILD (from rev 1229681, qhexedit2/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-06-09 14:57:42 UTC (rev 1229682)
@@ -0,0 +1,62 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=qhexedit2
+pkgver=0.8.9
+pkgrel=1
+pkgdesc='Hex editor widget written in C++ for the Qt framework'
+url='https://github.com/Simsys/qhexedit2'
+arch=(x86_64)
+license=(LGPL)
+depends=(qt5-base)
+makedepends=(cmake qt5-tools)
+provides=(libqhexedit.so)
+options=(debug)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('2c32d0fde1685e9af7978ba60002a7d9fad4f2f3d0d1c4b19bdc18ab74b69e41')
+b2sums=('901cda2d28074bb535426102e40e0d5b6e68d3659b16ab4755b124de1f8a0ca878494e537f2c44b19dfc7bd9b9db499e74f66bd42301a73d12830486b7883d02')
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  msg2 'Building qt library'
+  qmake-qt5 src/qhexedit.pro
+  make
+
+  msg2 'Building tests'
+  pushd test
+  qmake-qt5 chunks.pro
+  make
+  mkdir logs
+  popd
+
+  msg2 'Building pkgconfig'
+  cat > ${pkgname}.pc <<EOF
+prefix=/usr
+libdir=\${prefix}/lib
+includedir=\${prefix}/include/${pkgname}
+
+Name: ${pkgname}
+Description: ${pkgdesc}
+Version: ${pkgver}
+Cflags: -I\${includedir}
+Libs: -L\${libdir} -lqhexedit
+EOF
+}
+
+check() {
+  cd ${pkgname}-${pkgver}/test
+  ./chunks
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  install -Dm 644 src/*.h -t "${pkgdir}/usr/include/${pkgname}"
+  install -d "${pkgdir}/usr/lib"
+  cp -a *.so* "${pkgdir}/usr/lib"
+  install -Dm 644 ${pkgname}.pc -t "${pkgdir}/usr/share/pkgconfig"
+
+  install -Dm 744 readme.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 744 src/license.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list