-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrib/rustc-demangle: new package (0.1.24)
- Loading branch information
1 parent
ae689b3
commit e4ed045
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rustc-demangle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rustc-demangle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
pkgname = "rustc-demangle" | ||
pkgver = "0.1.24" | ||
pkgrel = 0 | ||
build_style = "cargo" | ||
make_build_args = ["--workspace"] | ||
make_check_args = list(make_build_args) | ||
hostmakedepends = ["cargo-auditable"] | ||
makedepends = ["rust-std"] | ||
pkgdesc = "Library and tool to demangle Rust symbols" | ||
maintainer = "psykose <alice@ayaya.dev>" | ||
license = "Apache-2.0 OR MIT" | ||
url = "https://github.com/rust-lang/rustc-demangle" | ||
source = f"{url}/archive/refs/tags/{pkgver}.tar.gz" | ||
sha256 = "0a130040b74af0f1764b82fa55a8510d7d9284847206c32037f5660596060888" | ||
|
||
|
||
def do_install(self): | ||
self.install_bin( | ||
f"target/{self.profile().triplet}/release/demangle", | ||
name="rust-demangle", | ||
) | ||
self.install_lib( | ||
f"target/{self.profile().triplet}/release/librustc_demangle.so" | ||
) | ||
self.install_lib( | ||
f"target/{self.profile().triplet}/release/librustc_demangle.a" | ||
) | ||
self.install_files("crates/capi/include", "usr") | ||
self.install_license("LICENSE-MIT") | ||
|
||
|
||
@subpackage("rustc-demangle-libs") | ||
def _libs(self): | ||
self.pkgdesc = f"{pkgdesc} (runtime library)" | ||
# library without soname/version | ||
return ["usr/lib/librustc_demangle.so"] | ||
|
||
|
||
@subpackage("rustc-demangle-devel") | ||
def _devel(self): | ||
self.depends += [f"rustc-demangle-libs={pkgver}-r{pkgrel}"] | ||
return self.default_devel() |