rust-bindgen new package

This commit is contained in:
Rmys
2022-12-05 23:39:38 +03:00
parent 2c2e98417e
commit 3481162606
7 changed files with 365091 additions and 364849 deletions
@@ -0,0 +1,24 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.system('cargo fetch --locked --target "x86_64-unknown-linux-gnu"')
# autotools.configure()
def build():
shelltools.system('cargo build --release --frozen')
# autotools.make()
def install():
pisitools.dobin("target/release/bindgen")
# autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("CHANGELOG*", "LICENSE", "README*")
@@ -0,0 +1,46 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>rust-bindgen</Name>
<Homepage>https://github.com/rust-lang/rust-bindgen/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>library</IsA>
<Summary>Automatically generates Rust FFI bindings to C (and some C++) libraries</Summary>
<Icon>rust-bindgen</Icon>
<Description>C (ve bazı C++) kitaplıklarına otomatik olarak Rust FFI bağlamaları oluşturur</Description>
<Archive sha1sum="467ce178d57b716018ec85f24e1cddbd23759091" type="targz">https://github.com/rust-lang/rust-bindgen/archive/refs/tags/v0.63.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>rust</Dependency>
<Dependency>llvm-clang-devel</Dependency>
</BuildDependencies>
<!--
<Patches>
<Patch>rust-bindgen.patch</Patch>
<Patch level="1">rust-bindgen.patch</Patch>
</Patches>
-->
</Source>
<Package>
<Name>rust-bindgen</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2022-12-05</Date>
<Version>0.63.0</Version>
<Comment>First release</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>rust-bindgen</Name>
<Summary xml:lang="tr">Automatically generates Rust FFI bindings to C (and some C++) libraries</Summary>
<Description xml:lang="tr">C (ve bazı C++) kitaplıklarına otomatik olarak Rust FFI bağlamaları oluşturur</Description>
</Source>
</PISI>