aboutsummaryrefslogtreecommitdiffstats
path: root/community/thunar-vcs-plugin/APKBUILD
blob: d263311bbe502adc25cd7d3fd7e53e4f241d21a0 (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.1.90
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/0.1/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="6231bb863d9b884cd27f26e6cabbc3f8d3b39dc162f867932923408636bb96621bb60aa1bfa9b4637f5eed694e623cd911e855dde00d382b2a1bf36bb6b44e63  thunar-vcs-plugin-0.1.90.tar.bz2"