[arch-commits] Commit in libusb/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Sat Oct 17 09:25:26 UTC 2020


    Date: Saturday, October 17, 2020 @ 09:25:25
  Author: dvzrv
Revision: 398479

upgpkg: libusb 1.0.23-3: Rebuild to cleanup provides.

Switch to correct license (LGPL2.1).
Drop all legacy conflicts, provides and replaces.
Run autoreconf in prepare().
Add all available sodeps package() and their respective packages in makedepends.
Install docs.
Update maintainer info.

Modified:
  libusb/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++----------------
 1 file changed, 26 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-17 02:13:15 UTC (rev 398478)
+++ PKGBUILD	2020-10-17 09:25:25 UTC (rev 398479)
@@ -1,31 +1,41 @@
-# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
 # Contributor: Tobias Powalowski <tpowa at archlinux.org>
 
 pkgname=libusb
 pkgver=1.0.23
-pkgrel=2
-pkgdesc='Library that provides generic access to USB devices'
-arch=(x86_64)
-url='https://libusb.info/'
-license=(LGPL)
-depends=(glibc systemd-libs)
-makedepends=(systemd)
-replaces=(libusb1 libusbx)
-provides=("libusbx=$pkgver" libusb-1.0.so)
-conflicts=(libusbx)
-source=(https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2)
-md5sums=('1e29700f6a134766d32b36b8d1d61a95')
+pkgrel=3
+pkgdesc="Library that provides generic access to USB devices"
+arch=('x86_64')
+url="https://libusb.info/"
+license=('LGPL2.1')
+depends=('glibc')
+makedepends=('systemd')
+provides=('libusb-1.0.so')
+source=("https://github.com/${pkgname}/${pkgname}/releases/download/v$pkgver/${pkgname}-$pkgver.tar.bz2")
+sha512sums=('73430ad31dd405e76a9c6c55086961003989c44964e2735b5076f9ca849e3f6fe71d10a66b74b111f0c34a0d2cb744b9ca105863c552123fce4ec0bbdd2ec15b')
+b2sums=('4eaf8cce0047b85c3057c67b53769739c50a39c4d34e94659b030fb11f02309f9217e93d35d78f699c55256346cf8b14827c8ddf495caeeacc522c51f473abc2')
 
+prepare() {
+  cd "$pkgname-$pkgver"
+  autoreconf -vfi
+}
+
 build() {
-  cd $pkgname-$pkgver
+  cd "$pkgname-$pkgver"
   ./configure --prefix=/usr
   make
 }
 
 check() {
-  make -C $pkgname-$pkgver check
+  cd "$pkgname-$pkgver"
+  make -k check
 }
 
 package () {
-  make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
+  depends+=('libudev.so')
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -vDm 644 {AUTHORS,ChangeLog,README} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/"
 }



More information about the arch-commits mailing list