void-packages/srcpkgs/hwids/template

29 lines
1.0 KiB
Bash

# Template file for 'hwids'
pkgname=hwids
reverts="20201207_1 20210613_1 20200813.1_1 20200813.1_2 20200306_1 20200204_1 20191025_1 20190818_1 20190316_1 20180917_1 20180518_1 20180315_1 20171003_1 20170715_1 20170328_1 20161103_1 20160801_1 20160421_1 20160306_1 20150717_1 20150421_1 20150129_1 20150118_1"
version=0.375
revision=1
short_desc="Hardware Identification Databases"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later"
homepage="https://github.com/vcrhonek/hwdata"
distfiles="https://github.com/vcrhonek/hwdata/archive/refs/tags/v${version}.tar.gz"
checksum=69ffbfe4801c12c2d66d51f98044beec35afa406b1baa619c57b25a9b62b43a0
do_install() {
vmkdir usr/share/hwdata
for i in *.ids; do
vinstall $i 644 usr/share/hwdata
done
vmkdir usr/share/pkgconfig
vinstall hwdata.pc.in 644 usr/share/pkgconfig hwdata.pc
vsed -i \
-e 's|@prefix@|/usr|g' \
-e 's|@datadir@|/usr/share|g' \
-e 's|@pkgdatadir@|${datadir}/hwdata|g' \
-e "s|@VERSION@|${version}|g" \
-e "s|@NAME@|hwdata|g" \
${DESTDIR}/usr/share/pkgconfig/hwdata.pc
}