Can you please use tar sources instead of git?
It's very wasteful to have to download the entire git repository even if you're only using one tag.
Also, why does this have a pkgver function? Tha upstream published actual releases, this is not a -git package.
Thank you.
In case anyone is interested:
# Maintainer: DeltaCopy <7x0bb03yq@mozmail.com>
# Description: Builds Darkly from https://github.com/Bali10050/Darkly
# Autogenerated from https://github.com/DeltaCopy/darkly-packager
# basic info
pkgname="darkly"
pkgver=0.5.21
pkgrel=1
pkgdesc="Fork of Lightly (A modern style for Qt applications)"
url="https://github.com/Bali10050/darkly"
arch=('x86_64' 'aarch64')
license=("GPL-2.0-or-later")
pkgdir="$srcdir/fakeinstall_kf6"
build_dir="build_kf6"
makedepends=(
'cmake'
'extra-cmake-modules'
)
options=(!emptydirs !debug)
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/Bali10050/Darkly/archive/refs/tags/v$pkgver.tar.gz"
)
sha256sums=(
'bf3bd01d078850101182a7147e92300880ac6b21d5c1f35434d256e72d716524'
)
# KF6/Qt6
depends_kf6=(
'kdecoration'
'qt6-declarative'
'kcoreaddons'
'kcmutils'
'kcolorscheme'
'kconfig'
'kguiaddons'
'kiconthemes'
'kwindowsystem'
'frameworkintegration'
)
# KF5/QT5 for backward compatibility
depends_kf5=(
'kcmutils5'
'frameworkintegration5'
'kconfigwidgets5'
'kiconthemes5'
'kirigami2'
'kwindowsystem5'
)
depends=("${depends_kf6[@]}" "${depends_kf5[@]}")
build() {
cd "$srcdir/Darkly-$pkgver"
local cmake_options=(
-B $build_dir
-DBUILD_TESTING=OFF
-Wno-dev
)
cmake "${cmake_options[@]}"
cmake --build $build_dir
}
package() (
cd "$srcdir/Darkly-$pkgver"
DESTDIR="$pkgdir" cmake --install $build_dir
rm -rf "$pkgdir/usr/lib/cmake"
)
Pinned Comments