# SliTaz package receipt.

PACKED_SIZE="296.0K"
UNPACKED_SIZE="312.0K"
PACKAGE="pciids"
VERSION="20211230"
CATEGORY="misc"
SHORT_DESC="List of PCI ID's"
MAINTAINER="slaxemulator@gmail.com"
LICENSE="BSD GPL2"
WEB_SITE="https://pci-ids.ucw.cz/"

TARBALL="pci-$VERSION.ids.gz"
WGET_URL="${WEB_SITE}v2.2/pci.ids.gz"

BUILD_DEPENDS="advancecomp"

HOST_ARCH="i486 arm"

current_version()
{
	wget -O - https://github.com/pciutils/pciids/commits/master 2>/dev/null | \
	sed '/Commits on/!d;s|.* on |"|;s|<.*|"|;q' | \
	LOCALE=C xargs busybox date +%Y%m%d -D "%b %d, %Y" -d
}

# Rules to configure and make the package.
compile_rules()
{
	advdef -z4 pci-$VERSION.ids.gz
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share/misc
	cp $src/pci-$VERSION.ids.gz	$fs/usr/share/misc/pci.ids.gz
}
