Package Details: neobox-git 2.4.3.r6.g80fd723-1

Git Clone URL: https://aur.archlinux.org/neobox-git.git (read-only, click to copy)
Package Base: neobox-git
Description: 采用 C++ 20 编写的一个插件管理工具,可以安装网速悬浮窗等插件。
Upstream URL: https://github.com/yjmthu/Neobox
Licenses: MIT
Conflicts: neobox
Provides: neobox
Submitter: yjmthu
Maintainer: yjmthu (taotieren)
Last Packager: taotieren
Votes: 1
Popularity: 0.000083
First Submitted: 2023-08-14 10:07 (UTC)
Last Updated: 2023-08-15 03:48 (UTC)

Required by (0)

Sources (1)

Latest Comments

taotieren commented on 2023-08-14 10:34 (UTC) (edited on 2023-08-14 10:56 (UTC) by taotieren)

# Maintainer: yjmthu <yjmthu@gmail.com>

pkgname=neobox-git
pkgver=2.4.2.r15.g290c879
pkgrel=1
pkgdesc="采用 C++ 20 编写的一个插件管理工具,可以安装网速悬浮窗等插件。"
arch=('x86_64')
url="https://github.com/yjmthu/Neobox"
license=('MIT')
provides=(${pkgname%-git} yjson)
conflicts=(${pkgname%-git} yjson)
depends=(curl
  qt6-base)
makedepends=(cmake
  git
  libzip
  ninja)
backup=()
options=('!strip')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}/"
  git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${srcdir}/${pkgname}"
  git submodule update --init --recursive
}

build() {
  cd "${srcdir}/${pkgname}/"
# see:https://wiki.archlinux.org/title/CMake_package_guidelines
  cmake -B build \
      -D CMAKE_BUILD_TYPE=None \
      -D CMAKE_INSTALL_PREFIX=/usr \
      -D CMAKE_INSTALL_LIBDIR=lib \
      -D CMAKE_INSTALL_LIBEXECDIR=lib \
      -B build \
      -G Ninja

  ninja -C build
}

package() {
  DESTDIR="${pkgdir}" ninja -C "${srcdir}"/$pkgname/build install
}