summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f30c76ce0f75c9baee4af324402c5d2d89f42844 (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
_pkgname=libarchive-qt
pkgname=${_pkgname}-git
pkgver=v1.1.1.r0.b653d20
pkgrel=1
pkgdesc="A Qt based archiving solution with libarchive backend."
arch=('i686' 'x86_64')
url="https://gitlab.com/marcusbritanicus/libarchive-qt"
license=('LGPL-3.0')
depends=('libarchive' 'qt5-base' 'zlib' 'bzip2' 'xz')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
groups=('coreapps-git')
source=("git+https://gitlab.com/marcusbritanicus/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${_pkgname}"
	printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "$srcdir/${_pkgname}"
	qmake
	make
}

package() {
	cd "$srcdir/${_pkgname}"
	make INSTALL_ROOT=${pkgdir} install
}