Skip to content

Commit

Permalink
user/pipeline: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Sep 29, 2024
1 parent 22fa389 commit 025fc52
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
27 changes: 27 additions & 0 deletions user/pipeline/patches/manual-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--- a/src/meson.build
+++ b/src/meson.build
@@ -33,23 +33,15 @@ else
message('Building in debug mode')
endif

-cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ]
-
cargo_build = custom_target(
'cargo-build',
build_by_default: true,
build_always_stale: true,
output: meson.project_name(),
console: true,
- install: true,
- install_dir: bindir,
depends: resources,
command: [
- 'env',
- cargo_env,
cargo, 'build',
cargo_options,
- '&&',
- 'cp', 'target' / rust_target / meson.project_name(), '@OUTPUT@',
]
)

38 changes: 38 additions & 0 deletions user/pipeline/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
pkgname = "pipeline"
pkgver = "2.0.2"
pkgrel = 0
build_style = "meson"
hostmakedepends = [
"blueprint-compiler",
"cargo-auditable",
"desktop-file-utils",
"gettext",
"meson",
"pkgconf",
]
makedepends = ["clapper-devel", "libadwaita-devel", "openssl-devel", "rust-std"]
pkgdesc = "GTK-based youtube video player"
maintainer = "tulilirockz <[email protected]>"
license = "GPL-3.0-or-later"
url = "https://mobile.schmidhuberj.de/pipeline"
source = (
f"https://gitlab.com/schmiddi-on-mobile/pipeline/-/archive/v{pkgver}.tar.gz"
)
sha256 = "8408e670777cb72d59bf2a08057254432b178cf65353dc8dbd6110eb06e2f30a"


def post_patch(self):
from cbuild.util import cargo

cargo.Cargo(self, wrksrc=".").vendor()


def init_build(self):
from cbuild.util import cargo

renv = cargo.get_environment(self)
self.make_env.update(renv)


def post_install(self):
self.install_bin(f"./build/target/{self.profile().triplet}/release/tubefeeder")

0 comments on commit 025fc52

Please sign in to comment.