You are not logged in.

#1 2022-02-02 16:25:13

xxxion
Member
Registered: 2022-02-02
Posts: 3

PKGBUILD review request: cmake_tui

Hello, i want to publish my package. Here is PKGBUILD :
It simplifies cmake flags and params configuration.

# Maintainer: Xxxion <xionovermazes@yahoo.com>
pkgname=cmake_tui
pkgver=1.0.0
pkgrel=1
makedepends=('rust' 'cargo')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="CMake configuration via terminal user interface"
license=('MIT')

build() {
    return 0
}

package() {
    cargo install --root="$pkgdir" cmake_tui
}

Repo url : https://github.com/regular-dev/cmake_tui

If everything is satisfying, what is the next step to publish on aur?

Offline

#2 2022-02-02 16:50:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: PKGBUILD review request: cmake_tui

Online

#3 2022-02-07 13:49:11

xxxion
Member
Registered: 2022-02-02
Posts: 3

Re: PKGBUILD review request: cmake_tui

Here it is, the updated version :

# Maintainer: regular-dev.org <regular-dev@gmail.com>
pkgname=cmake_tui
pkgver=1.0.0
pkgrel=1
pkgdesc="CMake configuration via terminal user interface"
license=('MIT')
arch=('x86_64')
makedepends=('cargo')
url='https://github.com/regular-dev/cmake_tui'

source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
sha512sums=('34207502d386791a87c651b7568256d3ebdb85d406073a2b18ce22a15f9f567129833bf94a4cdaf03ad552f70bf5b247b1a5b8ce6203be936c4e95634b1e8ce8')

prepare() {
    cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    cargo build --frozen --release --all-features
}

package() {
    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}

Offline

#4 2022-02-07 14:33:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: PKGBUILD review request: cmake_tui

Are you testing this PKGBUILD yourself at all?  If so, you should post the errors you are still facing with your WIP PKGBUILD so we know what you need help with.  If not ... well, then you should be, as you'd see it error out right off the bat due to your functions not 'cd'ing into ${pkgname}-${pkgver}.

You've also listed no dependencies - I'm sure there are some.  At least glibc and gcc-libs objects are linked to by the binary in the package, and cmake is called as a subprocess, so that appears to be necessary for proper functioning.

Last edited by Trilby (2022-02-07 14:40:59)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2022-02-08 11:29:58

xxxion
Member
Registered: 2022-02-02
Posts: 3

Re: PKGBUILD review request: cmake_tui

Yes. It's just the first time with pkgbuild. I've recently tested my package at clean archlinux docker image and added dependencies. Everything works well. Below is updated PKGBUILD :

# Maintainer: regular-dev.org <regular-dev@gmail.com>
pkgname=cmake_tui
pkgver=1.0.0
pkgrel=1
pkgdesc="CMake configuration via terminal user interface"
license=('MIT')
arch=('x86_64')
makedepends=('cargo')
depends=('cmake' 'gcc' 'make')
url='https://github.com/regular-dev/cmake_tui'

source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
sha512sums=('34207502d386791a87c651b7568256d3ebdb85d406073a2b18ce22a15f9f567129833bf94a4cdaf03ad552f70bf5b247b1a5b8ce6203be936c4e95634b1e8ce8')

prepare() {
    cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    cargo build --frozen --release --all-features
}

package() {
    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}

Offline

Board footer

Powered by FluxBB