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.366
|
|
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=bdc91561ec210877e6d1e3ec3abf0305389d7bcc3bf616bcecb2bdf74e3a7696
|
|
|
|
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
|
|
}
|