summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9005657e9b10275e1b4b967a7dfd6186533bda42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Ángel Navarro <lito.15[at]proton[dot]me>
# Note: if you already cloned the original techmanwalker/beekeeper-qt repo, 
# this will clone it again. To use this PKGBUILD, it's better to
# download it separately.

pkgname=beekeeper-qt
pkgver=1.3.4
pkgrel=1
pkgdesc="Deduplicate redundant data in your disk and save space"
url="https://github.com/techmanwalker/beekeeper-qt"
depends=('qt6-base' 'qt6-tools' 'polkit-qt6' 'systemd' 'btrfs-progs' 'bees' 'util-linux')
arch=('x86_64')
license=('AGPL-3.0-or-later')
makedepends=('git' 'cmake' 'pkgconf' 'ninja' 'cli11')
optdepends=('doxygen')
provides=('beekeeper')
source=("$pkgname-$pkgver.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
md5sums=('SKIP')

build() {
  cd "$pkgname-$pkgver"
  cmake -B build -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  cd "$pkgname-$pkgver"
  # remove samples instal which are only needed for unit tests
  sed '/samples\/cmake_install.cmake/d' -i build/cmake_install.cmake
  DESTDIR="${pkgdir}" cmake --install build
}

# vim: ts=2 sw=2 et: