29 lines
1.0 KiB
Bash
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.374
|
|
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=2a0988bf5e97e49159d7f02a5e02a719c8976d4ec883a8abb635149d221ceca0
|
|
|
|
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
|
|
}
|