forked from rosa/hakurei
For upcoming azalea integration. The API is quite ugly right now to ease migration. Signed-off-by: Ophestra <cat@gensokyo.uk>
35 lines
846 B
Go
35 lines
846 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newHwdata(s *S) (pkg.Artifact, string) {
|
|
const (
|
|
version = "0.407"
|
|
checksum = "6p1XD0CRuzt6hLfjv4ShKBW934BexmoPkRrmwxD4J63fBVCzVBRHyF8pVJdW_Xjm"
|
|
)
|
|
return s.NewPackage(t, "hwdata", version, newFromGitHub(
|
|
"vcrhonek/hwdata",
|
|
"v"+version, checksum,
|
|
), &PackageAttr{
|
|
Writable: true,
|
|
EnterSource: true,
|
|
}, &MakeHelper{
|
|
// awk: fatal: cannot open file `hwdata.spec' for reading: No such file or directory
|
|
InPlace: true,
|
|
|
|
// lspci: Unknown option 'A' (see "lspci --help")
|
|
SkipCheck: true,
|
|
}), version
|
|
}
|
|
func init() {
|
|
native.MustRegister(&Artifact{
|
|
f: Toolchain.newHwdata,
|
|
|
|
Name: "hwdata",
|
|
Description: "contains various hardware identification and configuration data",
|
|
Website: "https://github.com/vcrhonek/hwdata",
|
|
|
|
ID: 5387,
|
|
})
|
|
}
|