Name usbutils-py
Description Linux USB utilities - lsusb.py command
Version 1:017-3build1
Package Base usbutils
Homepage https://github.com/gregkh/usbutils
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors []
Distro-repo https://git.launchpad.net/ubuntu/+source/usbutils/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/usbutils-py/plain/debian/watch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/usbutils/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/usbutils/plain/debian/patches/01-add-a-manpage-for-lsusb.py.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/usbutils/plain/debian/patches/02-add-lsusb.py.1-to-distcleanfiles.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/usbutils/plain/debian/patches/03-add-a-manpage-for-usbreset.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/usbutils/plain/debian/patches/series?h=ubuntu/noble']
Dependencies ['python3', 'usb.ids']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'libusb-1.0-0-dev', 'libudev-dev', 'pkg-config', 'python3', 'dh-python']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 6000ac2866dd249129c68aaa802b81bf606f95dce08161f44e4d05871776f104
#!/usr/bin/make -f
-include /usr/share/dpkg/buildtools.mk

%:
	dh $@ --with python3

override_dh_auto_configure:
	dh_auto_configure -- --datadir=/usr/share/misc

override_dh_auto_build:
	dh_auto_build
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(CURDIR)/usbreset $(CURDIR)/usbreset.c

override_dh_auto_install:
	dh_auto_install --destdir=$(CURDIR)/debian/tmp
	install -m 755 $(CURDIR)/usbreset $(CURDIR)/debian/tmp/usr/bin

override_dh_auto_clean:
	dh_auto_clean
	rm -f $(CURDIR)/usbreset