summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 592429d12c2da0585a1ea5f32326c0b990270422 (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
# Maintainer: Toni500 <tonino512@linuxmail.org>
pkgname="tabaur"
_pkgname="TabAUR"
pkgver=0.6.8
pkgrel=1
pkgdesc="A customizable and lightweight AUR helper, designed to be simple but powerful."
arch=('x86_64' 'aarch64')
url="https://github.com/BurntRanch/TabAUR"
license=('GPL2')
depends=('pacman' 'curl')
makedepends=('base-devel' 'cmake')
optdepends=(
  "sudo: privilege elevation"
  "opendoas: privilege elevation"
  "git: use AUR packages git repos"
  "tar: use AUR packages tarballs"
)
conflicts=('tabaur-git' 'tabaur-bin')
source=("git+${url}.git")
sha256sums=("SKIP")

prepare() {
    cd "${srcdir}/${_pkgname}"
    git checkout "v${pkgver}"
    git submodule init
    git submodule update --init --recursive
}

# there is no need for build() because `make install` already builds and install TabAUR
package() {
    cd "${srcdir}/${_pkgname}"
    make install DESTDIR="${pkgdir}" PREFIX="/usr" DEBUG=0
    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}