From 95b7f46dfaa9cb036ee074dd3eb05e1a20e59f65 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Wed, 11 Dec 2019 21:19:50 +0100 Subject: [PATCH] fix(x86_64/rpm-builder): now with sig --- x86_64/rpm-builder/.gitignore | 3 +++ x86_64/rpm-builder/PKGBUILD | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 x86_64/rpm-builder/.gitignore create mode 100644 x86_64/rpm-builder/PKGBUILD diff --git a/x86_64/rpm-builder/.gitignore b/x86_64/rpm-builder/.gitignore new file mode 100644 index 0000000..73e070b --- /dev/null +++ b/x86_64/rpm-builder/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!PKGBUILD \ No newline at end of file diff --git a/x86_64/rpm-builder/PKGBUILD b/x86_64/rpm-builder/PKGBUILD new file mode 100644 index 0000000..c2d3734 --- /dev/null +++ b/x86_64/rpm-builder/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Markus Pesch + +pkgname=rpm-builder +pkgver=0.4.0 +pkgrel=2 +pkgdesc='Build rpms without a spec file. Pure Rust. No dependencies to librpm' +arch=('x86_64') +url=https://github.com/Richterrettich/rpm-builder +license=('Apache 2.0') +makedepends=('rust') +source=("https://codeload.github.com/Richterrettich/rpm-builder/tar.gz/${pkgver}") +sha256sums=('SKIP') + +build() { + make -C "${srcdir}/${pkgname}-${pkgver}" build +} + +package() { + install -Dm755 "${srcdir}/${pkgname}-${pkgver}/target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -Dm755 "${srcdir}/${pkgname}-${pkgver}/target/${pkgname}.bash" "${pkgdir}/etc/profile.d/${pkgname}.sh" + install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} \ No newline at end of file