aboutsummaryrefslogtreecommitdiffstats
path: root/community/thunar-vcs-plugin/APKBUILD
blob: f30e253da521223adfae51575cce6ad305994419 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=thunar-vcs-plugin
pkgver=0.2.0
pkgrel=0
pkgdesc="Version Contol System plugin for the Thunar filemanager"
url="https://goodies.xfce.org/projects/thunar-plugins/thunar-vcs-plugin"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no test suite
depends="thunar"
makedepends="thunar-dev subversion-dev apr-dev apr-util-dev util-linux-dev"
subpackages="$pkgname-git:_git $pkgname-svn:_svn $pkgname-lang"
source="https://archive.xfce.org/src/thunar-plugins/thunar-vcs-plugin/${pkgver%.*}/thunar-vcs-plugin-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$builddir"
	default_prepare

	# quick and dirty fix for apr linking
	sed -i -e 's/APR_LDFLAGS/APR_LIBS/' thunar-vcs-plugin/Makefile.in
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libexecdir=/usr/lib/xfce4 \
		--disable-static \
		--enable-subversion \
		--enable-git
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

_mv_files() {
	local i
	for i in "$@"; do
		mkdir -p "$subpkgdir"/${i%/*}
		mv "$pkgdir"/$i "$subpkgdir"/$i
	done
}

_git() {
	pkgdesc="Git support for thunar-vcs-plugin"
	depends=""
	install_if="$pkgname=$pkgver-r$pkgrel git"
	cd "$pkgdir"
	_mv_files usr/lib/xfce4/tvp-git-helper \
		usr/share/icons/hicolor/*/apps/git.png
}

_svn() {
	pkgdesc="Subversion support for thunar-vcs-plugin"
	depends=""
	install_if="$pkgname=$pkgver-r$pkgrel subversion"
	cd "$pkgdir"
	_mv_files usr/lib/xfce4/tvp-svn-helper \
		usr/share/icons/hicolor/*/apps/subversion.png
}

sha512sums="c33f54caa2f27de6c8f9e5cb8368f7538ea82730f1364ad974b19017a25bc6a398c19dfe861b0d0133db08ee36e4e209c8d824ce07de0c2ae6da830aca9e7e68  thunar-vcs-plugin-0.2.0.tar.bz2"