summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b972a7443884658668a12c8b18b4ebcbb3e0de8 (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
# Maintainer:  twa022 <twa022 at gmail dot com>

_pkgname=thunar-archive-plugin
pkgname=${_pkgname}-git
pkgver=0.6.0+6+g5381465
pkgrel=1
pkgdesc="Adds archive operations to the Thunar file context menus"
arch=('x86_64')
url="https://docs.xfce.org/xfce/thunar/archive"
license=('GPL-2.0-only')
groups=('xfce4-goodies-git')
depends=('thunar' 'hicolor-icon-theme')
makedepends=('git' 'meson' 'xfce4-dev-tools')
optdepends=('file-roller' 'engrampa' 'ark' 'xarchiver')
source=("${_pkgname}::git+https://gitlab.xfce.org/thunar-plugins/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  git describe --long --tags | sed -r "s:^${_pkgname}.::;s/^v//;s/^xfce-//;s/-/+/g"
}

build() {
  arch-meson "${_pkgname}" build \
    --localstatedir=/var \
    --libexecdir=/usr/lib/xfce4
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
}