Date: Wednesday, May 17, 2023 @ 21:14:07 Author: artafinde Revision: 1463004
archrelease: copy trunk to community-x86_64 Added: rustypaste/repos/community-x86_64/PKGBUILD (from rev 1463003, rustypaste/trunk/PKGBUILD) Deleted: rustypaste/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 102 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 51 insertions(+), 51 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-05-17 21:14:01 UTC (rev 1463003) +++ PKGBUILD 2023-05-17 21:14:07 UTC (rev 1463004) @@ -1,51 +0,0 @@ -# Maintainer: Frederik Schwan <freswa at archlinux dot org> -# Maintainer: Orhun Parmaksız <or...@archlinux.org> - -pkgname=rustypaste -pkgver=0.9.0 -pkgrel=1 -pkgdesc='A minimal file upload/pastebin service' -arch=('x86_64') -url='https://github.com/orhun/rustypaste' -license=('MIT') -depends=('gcc-libs') -makedepends=('cargo') -backup=('etc/rustypaste/config.toml') -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/orhun/rustypaste/archive/refs/tags/v${pkgver}.tar.gz) -b2sums=('537d1e25cb019a78c36457dc775f74968c38c43594f1b1bb8a45d6c3ebc50c9fe7a00c2c77109f9613b78c11ce9709f343d22c829b0ef9e56260dd7dbf8f04b5') - -prepare() { - cd ${pkgname}-${pkgver} - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" -} - -build() { - cd ${pkgname}-${pkgver} - export RUSTUP_TOOLCHAIN=stable - export CARGO_TARGET_DIR=target - CFLAGS+=' -ffat-lto-objects' - cargo build --release --frozen -} - -check() { - cd ${pkgname}-${pkgver} - export RUSTUP_TOOLCHAIN=stable - CFLAGS+=' -ffat-lto-objects' - cargo test --frozen -- --test-threads 1 - - cd fixtures - sed -i "s|target/debug|target/release|" test-fixtures.sh - ./test-fixtures.sh -} - -package() { - cd ${pkgname}-${pkgver} - install -Dm755 target/release/${pkgname} -t "${pkgdir}"/usr/bin - install -Dm644 config.toml -t "${pkgdir}"/etc/rustypaste - install -Dm644 README.md -t "${pkgdir}"/usr/share/doc/${pkgname} - install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} - install -Dm644 extra/systemd/rustypaste.env -t "${pkgdir}"/etc/rustypaste - install -Dm644 extra/systemd/rustypaste.service -t "$pkgdir"/usr/lib/systemd/system/ - install -Dm644 extra/systemd/rustypaste.sysusers "${pkgdir}"/usr/lib/sysusers.d/rustypaste.conf - install -Dm644 extra/systemd/rustypaste.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/rustypaste.conf -} Copied: rustypaste/repos/community-x86_64/PKGBUILD (from rev 1463003, rustypaste/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-05-17 21:14:07 UTC (rev 1463004) @@ -0,0 +1,51 @@ +# Maintainer: Frederik Schwan <freswa at archlinux dot org> +# Maintainer: Orhun Parmaksız <or...@archlinux.org> + +pkgname=rustypaste +pkgver=0.9.0 +pkgrel=2 +pkgdesc='A minimal file upload/pastebin service' +arch=('x86_64') +url='https://github.com/orhun/rustypaste' +license=('MIT') +depends=('gcc-libs' 'openssl') +makedepends=('cargo') +backup=('etc/rustypaste/config.toml') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/orhun/rustypaste/archive/refs/tags/v${pkgver}.tar.gz) +b2sums=('537d1e25cb019a78c36457dc775f74968c38c43594f1b1bb8a45d6c3ebc50c9fe7a00c2c77109f9613b78c11ce9709f343d22c829b0ef9e56260dd7dbf8f04b5') + +prepare() { + cd ${pkgname}-${pkgver} + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd ${pkgname}-${pkgver} + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + CFLAGS+=' -ffat-lto-objects' + cargo build --release --frozen --no-default-features --features openssl +} + +check() { + cd ${pkgname}-${pkgver} + export RUSTUP_TOOLCHAIN=stable + CFLAGS+=' -ffat-lto-objects' + cargo test --frozen -- --test-threads 1 + + cd fixtures + sed -i "s|target/debug|target/release|" test-fixtures.sh + ./test-fixtures.sh +} + +package() { + cd ${pkgname}-${pkgver} + install -Dm755 target/release/${pkgname} -t "${pkgdir}"/usr/bin + install -Dm644 config.toml -t "${pkgdir}"/etc/rustypaste + install -Dm644 README.md -t "${pkgdir}"/usr/share/doc/${pkgname} + install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} + install -Dm644 extra/systemd/rustypaste.env -t "${pkgdir}"/etc/rustypaste + install -Dm644 extra/systemd/rustypaste.service -t "$pkgdir"/usr/lib/systemd/system/ + install -Dm644 extra/systemd/rustypaste.sysusers "${pkgdir}"/usr/lib/sysusers.d/rustypaste.conf + install -Dm644 extra/systemd/rustypaste.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/rustypaste.conf +}