cargo-c rav1e new package
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#!/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 build():
|
||||
shelltools.system("cargo build \
|
||||
--release \
|
||||
--manifest-path Cargo.toml")
|
||||
|
||||
shelltools.system("cargo cbuild \
|
||||
--release \
|
||||
--frozen \
|
||||
--prefix=/usr \
|
||||
--manifest-path Cargo.toml")
|
||||
|
||||
def install():
|
||||
shelltools.system("cargo install --path . \
|
||||
--root='%s'/usr" % get.installDIR())
|
||||
|
||||
shelltools.system("cargo cinstall \
|
||||
--release \
|
||||
--frozen \
|
||||
--prefix /usr \
|
||||
--destdir %s" % get.installDIR())
|
||||
|
||||
pisitools.remove("/usr/lib/librav1e.a")
|
||||
pisitools.remove("/usr/.crates.toml")
|
||||
pisitools.remove("/usr/.crates2.json")
|
||||
|
||||
pisitools.dodoc("LICENSE", "README*")
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>rav1e</Name>
|
||||
<Homepage>https://github.com/xiph/rav1e</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>The fastest and safest AV1 encoder</Summary>
|
||||
<Description>En hızlı ve en güvenli AV1 kodlayıcı</Description>
|
||||
<Archive sha1sum="75ce2478992b53bda6f6d1891c3ff4aadbb93df4" type="targz">https://github.com/xiph/rav1e/archive/refs/tags/v0.5.0.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>rust</Dependency>
|
||||
<Dependency>nasm</Dependency>
|
||||
<Dependency>cargo-c</Dependency>
|
||||
</BuildDependencies>
|
||||
<!--
|
||||
<Patches>
|
||||
<Patch>rav1e.patch</Patch>
|
||||
<Patch level="1">rav1e.patch</Patch>
|
||||
</Patches>
|
||||
-->
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>rav1e</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libgcc</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>rav1e-devel</Name>
|
||||
<Summary>Development files for rav1e</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">rav1e</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2021-11-02</Date>
|
||||
<Version>0.5.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>rav1e</Name>
|
||||
<Summary xml:lang="tr">The fastest and safest AV1 encoder</Summary>
|
||||
<Description xml:lang="tr">En hızlı ve en güvenli AV1 kodlayıcı</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/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
|
||||
|
||||
import os
|
||||
|
||||
def build():
|
||||
|
||||
|
||||
shelltools.system("cargo fetch \
|
||||
--locked \
|
||||
--manifest-path Cargo.toml \
|
||||
cargo build \
|
||||
--release \
|
||||
--frozen \
|
||||
--manifest-path Cargo.toml")
|
||||
#autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS", "BUGS", "ChangeLog", "COPYING", "NEWS", "README")
|
||||
Reference in New Issue
Block a user