Date: Sunday, March 12, 2023 @ 07:57:48
  Author: bgyorgy
Revision: 1419243

archrelease: copy trunk to community-x86_64

Added:
  hidapi/repos/community-x86_64/PKGBUILD
    (from rev 1419242, hidapi/trunk/PKGBUILD)
Deleted:
  hidapi/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   68 ++++++++++++++++++++++++-------------------------------------
 1 file changed, 27 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-12 07:57:38 UTC (rev 1419242)
+++ PKGBUILD    2023-03-12 07:57:48 UTC (rev 1419243)
@@ -1,41 +0,0 @@
-# Maintainer: Sergej Pupykin <[email protected]>
-# Maintainer: Niels Martignène <[email protected]>
-# Contributor: Nicolas Avrutin <[email protected]>
-# Contributor: Emmanuel Gil Peyrot <[email protected]>
-
-pkgname=hidapi
-pkgver=0.13.1
-pkgrel=1
-pkgdesc='Simple library for communicating with USB and Bluetooth HID devices'
-arch=(x86_64)
-url='https://github.com/libusb/hidapi'
-license=('GPL3' 'BSD' 'custom')
-makedepends=('systemd' 'systemd-libs' 'libusb')
-optdepends=('libusb: for the libusb backend -- hidapi-libusb.so'
-            'libudev.so: for the hidraw backend -- hidapi-hidraw.so')
-provides=('libhidapi-hidraw.so' 'libhidapi-libusb.so')
-source=("https://github.com/libusb/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz";)
-sha512sums=('07b224b9b5146caf693e6d67514fed236436ed68f38a3ada98ebf8352dfaa4e175f576902affb4b79da1bb8c9b47a1ee0831a93c7d3d210e93faee24632f7d53')
-
-prepare() {
-  cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"
-
-  ./bootstrap
-}
-build() {
-  cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"
-
-  ./configure \
-    --prefix=/usr
-  make
-}
-
-package() {
-  cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"
-
-  make DESTDIR="${pkgdir}/" install
-
-  mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
-  rm -f "${pkgdir}/usr/share/doc/hidapi/"LICENSE*
-  install -m0644 LICENSE.txt LICENSE-bsd.txt LICENSE-orig.txt 
"${pkgdir}/usr/share/licenses/${pkgname}/"
-}

Copied: hidapi/repos/community-x86_64/PKGBUILD (from rev 1419242, 
hidapi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-03-12 07:57:48 UTC (rev 1419243)
@@ -0,0 +1,27 @@
+# Contributor: Sergej Pupykin <[email protected]>
+# Contributor: Niels Martignène <[email protected]>
+# Contributor: Nicolas Avrutin <[email protected]>
+# Contributor: Emmanuel Gil Peyrot <[email protected]>
+
+pkgname=hidapi
+pkgver=0.13.1
+pkgrel=2
+pkgdesc='Simple library for communicating with USB and Bluetooth HID devices'
+arch=(x86_64)
+url='https://github.com/libusb/hidapi'
+license=('GPL3' 'BSD' 'custom')
+depends=('libusb' 'systemd-libs')
+makedepends=('cmake')
+provides=('libhidapi-hidraw.so' 'libhidapi-libusb.so')
+source=("https://github.com/libusb/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz";)
+sha512sums=('07b224b9b5146caf693e6d67514fed236436ed68f38a3ada98ebf8352dfaa4e175f576902affb4b79da1bb8c9b47a1ee0831a93c7d3d210e93faee24632f7d53')
+
+build() {
+  cmake -B build -S ${pkgname}-${pkgname}-${pkgver} -DCMAKE_INSTALL_PREFIX=/usr
+  cmake --build build
+}
+
+package() {
+  DESTDIR="${pkgdir}" cmake --install build
+  install -Dm0644 ${pkgname}-${pkgname}-${pkgver}/LICENSE*.txt -t 
"${pkgdir}/usr/share/licenses/${pkgname}/"
+}

Reply via email to