[arch-commits] Commit in (4 files)
Maxime Gauduin
alucryd at archlinux.org
Thu Mar 25 17:31:51 UTC 2021
Date: Thursday, March 25, 2021 @ 17:31:51
Author: alucryd
Revision: 903318
add oxyromon
Added:
oxyromon/
oxyromon/trunk/
oxyromon/trunk/PKGBUILD
oxyromon/trunk/oxyromon-chdman-path.patch
----------------------------+
PKGBUILD | 73 +++++++++++++++++++++++++++++++++++++++++++
oxyromon-chdman-path.patch | 21 ++++++++++++
2 files changed, 94 insertions(+)
Added: oxyromon/trunk/PKGBUILD
===================================================================
--- oxyromon/trunk/PKGBUILD (rev 0)
+++ oxyromon/trunk/PKGBUILD 2021-03-25 17:31:51 UTC (rev 903318)
@@ -0,0 +1,73 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=oxyromon
+pkgver=0.6.0
+pkgrel=1
+pkgdesc='Rusty ROM OrgaNizer'
+arch=(x86_64)
+url=https://github.com/alucryd/oxyromon
+license=(GPL3)
+depends=(
+ gcc-libs
+ glibc
+)
+makedepends=(
+ git
+ mame
+ maxcso
+ p7zip
+ rust
+)
+optdepends=(
+ 'mame: CHD support'
+ 'maxcso: CSO support'
+ 'p7zip: 7Z and ZIP support'
+)
+_tag=bde32c31c83e12b18baefaf4182664b431dae16d
+source=(
+ git+https://github.com/alucryd/oxyromon.git?signed#tag=${_tag}
+ oxyromon-chdman-path.patch
+)
+validpgpkeys=('9437DD3815A7A9169E3D3946AFF5D95098BC6FF5') # Maxime Gauduin <alucryd at archlinux.org>
+b2sums=('SKIP'
+ '8cb8a37e11c521436c2e015367458219205ded84c404928cf74a5f75843b7903b420af6bc820ff809fd1fd8bd605185918393f140e1f66dd85c9a538698a9407')
+
+prepare() {
+ cargo fetch \
+ --locked \
+ --manifest-path oxyromon/Cargo.toml
+
+ cd oxyromon
+ patch -Np1 -i ../oxyromon-chdman-path.patch
+}
+
+pkgver() {
+ cd oxyromon
+
+ git describe --tags
+}
+
+build() {
+ cargo build \
+ --release \
+ --frozen \
+ --manifest-path oxyromon/Cargo.toml
+}
+
+check() {
+ cargo test \
+ --release \
+ --frozen \
+ --manifest-path oxyromon/Cargo.toml
+}
+
+package() {
+ cargo install \
+ --frozen \
+ --offline \
+ --no-track \
+ --path oxyromon \
+ --root "${pkgdir}"/usr
+}
+
+# vim: ts=2 sw=2 et:
Added: oxyromon/trunk/oxyromon-chdman-path.patch
===================================================================
--- oxyromon/trunk/oxyromon-chdman-path.patch (rev 0)
+++ oxyromon/trunk/oxyromon-chdman-path.patch 2021-03-25 17:31:51 UTC (rev 903318)
@@ -0,0 +1,21 @@
+diff '--color=auto' -rupN oxyromon.orig/src/chdman.rs oxyromon/src/chdman.rs
+--- oxyromon.orig/src/chdman.rs 2021-03-25 16:24:40.030873441 +0100
++++ oxyromon/src/chdman.rs 2021-03-25 16:25:32.009052878 +0100
+@@ -18,7 +18,7 @@ pub fn create_chd(cue_path: &PathBuf, pr
+ let mut chd_path = cue_path.clone();
+ chd_path.set_extension(CHD_EXTENSION);
+
+- let output = Command::new("chdman")
++ let output = Command::new("mame-chdman")
+ .arg("createcd")
+ .arg("-i")
+ .arg(cue_path)
+@@ -51,7 +51,7 @@ pub async fn extract_chd(
+ cue_name.push(CUE_EXTENSION);
+ let cue_path = directory.join(cue_name);
+
+- let output = Command::new("chdman")
++ let output = Command::new("mame-chdman")
+ .arg("extractcd")
+ .arg("-i")
+ .arg(chd_path)
More information about the arch-commits
mailing list