diff options
author | Maxime Gauduin | 2021-04-17 11:38:22 +0200 |
---|---|---|
committer | Maxime Gauduin | 2021-04-17 11:38:22 +0200 |
commit | f109304ae66cdb5d32b76970c3cead4dfa224c81 (patch) | |
tree | ea1556a75f3d9190c4b789cd115a65e14cd524d4 | |
download | aur-oxyromon-git.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 67 |
2 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4e240ccf2505 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = oxyromon-git + pkgdesc = Rusty ROM OrgaNizer + pkgver = 0.7.0.r7.3a885be + pkgrel = 1 + url = https://github.com/alucryd/oxyromon + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = mame-tools + makedepends = maxcso + makedepends = p7zip + makedepends = rust + depends = gcc-libs + depends = glibc + optdepends = mame-tools: CHD support + optdepends = maxcso: CSO support + optdepends = p7zip: 7Z and ZIP support + provides = oxyromon + conflicts = oxyromon + source = git+https://github.com/alucryd/oxyromon.git + validpgpkeys = 9437DD3815A7A9169E3D3946AFF5D95098BC6FF5 + b2sums = SKIP + +pkgname = oxyromon-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..168b7a8f2621 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,67 @@ +# Maintainer: Maxime Gauduin <alucryd@archlinux.org> + +pkgname=oxyromon-git +pkgver=0.7.0.r7.3a885be +pkgrel=1 +pkgdesc='Rusty ROM OrgaNizer' +arch=(x86_64) +url=https://github.com/alucryd/oxyromon +license=(GPL3) +depends=( + gcc-libs + glibc +) +makedepends=( + git + mame-tools + maxcso + p7zip + rust +) +optdepends=( + 'mame-tools: CHD support' + 'maxcso: CSO support' + 'p7zip: 7Z and ZIP support' +) +provides=(oxyromon) +conflicts=(oxyromon) +source=(git+https://github.com/alucryd/oxyromon.git) +validpgpkeys=(9437DD3815A7A9169E3D3946AFF5D95098BC6FF5) # Maxime Gauduin <alucryd@archlinux.org> +b2sums=(SKIP) + +prepare() { + cargo fetch \ + --locked \ + --manifest-path oxyromon/Cargo.toml +} + +pkgver() { + cd oxyromon + + git describe --tags | sed 's/-/.r/; s/-g/./' +} + +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: |