diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/rosa/all.go | 3 | ||||
| -rw-r--r-- | internal/rosa/pkg-config.go | 29 |
2 files changed, 31 insertions, 1 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 68ae8e91..4bc45a7a 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -24,8 +24,9 @@ const ( M4 Make Ninja - Perl Patch + Perl + PkgConfig Python Rsync Zlib diff --git a/internal/rosa/pkg-config.go b/internal/rosa/pkg-config.go new file mode 100644 index 00000000..d6ae9c83 --- /dev/null +++ b/internal/rosa/pkg-config.go @@ -0,0 +1,29 @@ +package rosa + +import "hakurei.app/internal/pkg" + +func (t Toolchain) newPkgConfig() pkg.Artifact { + const ( + version = "0.29.2" + checksum = "gi7yAvkwo20Inys1tHbeYZ3Wjdm5VPkrnO0Q6_QZPCAwa1zrA8F4a63cdZDd-717" + ) + return t.New("pkg-config-"+version, []pkg.Artifact{ + t.Load(Make), + }, nil, nil, ` +cd "$(mktemp -d)" +/usr/src/pkg-config/configure \ + --prefix=/system \ + --build="${ROSA_TRIPLE}" \ + CFLAGS='-Wno-int-conversion' \ + --with-internal-glib +make "-j$(nproc)" check +make DESTDIR=/work install +`, pkg.Path(AbsUsrSrc.Append("pkg-config"), true, pkg.NewHTTPGetTar( + nil, + "https://pkgconfig.freedesktop.org/releases/"+ + "pkg-config-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ))) +} +func init() { artifactsF[PkgConfig] = Toolchain.newPkgConfig } |
