diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 25 insertions, 13 deletions
@@ -1,32 +1,44 @@ -# Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com > +# Maintainer: Wachid Adi Nugroho <wachidadinugroho.maya@gmail.com> +# Contributor: Gustavo Castro < gustawho [ at ] gmail [ dot ] com > -pkgname=mauikit-accounts-git -pkgver=r10.d9f46d9 +_pkgname=mauikit-accounts +pkgname=$_pkgname-git +pkgver=4.0.0.alpha.20240502 pkgrel=1 pkgdesc="MauiKit utilities to handle User Accounts" arch=(x86_64 i686 arm armv6h armv7h aarch64) url="https://invent.kde.org/maui/mauikit-accounts" -license=('GPL3') -depends=('mauikit-git' 'ki18n' 'kconfig' 'kcoreaddons') -makedepends=('git' 'extra-cmake-modules') -provides=('mauikit-accounts') -conflicts=('mauikit-accounts') -source=("git+${url}.git") +license=(BSD-2-Clause custom:CC0 LGPL) +groups=(maui) +depends=(qt6-base kcoreaddons ki18n mauikit-git) +makedepends=(git extra-cmake-modules) +provides=($_pkgname) +conflicts=($_pkgname) +source=(git+$url.git) sha256sums=('SKIP') pkgver() { - cd "${pkgname%-git}" + cd $_pkgname + if git tag | grep v4 + then ( set -o pipefail - git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long --tags --first-parent --match 'v[0-9][0-9.][0-9.]*' | \ + sed 's=^v==;s=^\([0-9][0-9.]*\)-\([a-zA-Z]\+\)=\1\2=;s=\([0-9]\+-g\)=r\1=;s=-=.=g' ) + else + echo "4.0.0.alpha.`date "+%Y%m%d"`" + fi } build() { - cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -B build -S "${pkgname%-git}" + cmake -B build -S $_pkgname \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DBUILD_WITH_QT6=ON cmake --build build --config RelWithDebInfo } package() { DESTDIR="${pkgdir}" cmake --install build --config RelWithDebInfo + install -Dm644 $_pkgname/LICENSES/* -t "${pkgdir}"/usr/share/licenses/$_pkgname } |