diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-29 06:28:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-29 06:28:40 +0000 |
commit | 33e9a622164d48703f0b5245d4f5a3ed58472a01 (patch) | |
tree | 85c638f203075f470de4b307b31c15844c496c26 /testing | |
parent | 07c3eb2a6edb08803a81a6c1083349534f5c1f65 (diff) | |
download | aports-33e9a622164d48703f0b5245d4f5a3ed58472a01.tar.bz2 aports-33e9a622164d48703f0b5245d4f5a3ed58472a01.tar.xz |
testing/thunar-vcs-plugin: new aport
Version Contol System plugin for the Thunar filemanager
http://goodies.xfce.org/projects/thunar-plugins/thunar-vcs-plugin
Diffstat (limited to 'testing')
-rw-r--r-- | testing/thunar-vcs-plugin/APKBUILD | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/testing/thunar-vcs-plugin/APKBUILD b/testing/thunar-vcs-plugin/APKBUILD new file mode 100644 index 0000000000..8485b16fa9 --- /dev/null +++ b/testing/thunar-vcs-plugin/APKBUILD @@ -0,0 +1,69 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=thunar-vcs-plugin +pkgver=0.1.4 +pkgrel=0 +pkgdesc="Version Contol System plugin for the Thunar filemanager" +url="http://goodies.xfce.org/projects/thunar-plugins/thunar-vcs-plugin" +arch="all" +license="GPLv2+" +depends= +makedepends="thunar-dev subversion-dev apr-dev util-linux-ng-dev" +install="" +subpackages="$pkgname-git:_git $pkgname-svn:_svn" +source="http://archive.xfce.org/src/thunar-plugins/thunar-vcs-plugin/0.1/thunar-vcs-plugin-$pkgver.tar.bz2" + +_builddir="$srcdir"/thunar-vcs-plugin-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --disable-static \ + --enable-subversion \ + --enable-git \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/thunarx-*/*.la +} + +_mv_files() { + local i + for i in "$@"; do + mkdir -p "$subpkgdir"/${i%/*} + mv "$pkgdir"/$i "$subpkgdir"/$i || return 1 + done +} + +_git() { + pkgdesc="Git support for thunar-vcs-plugin" + depends= + install_if="thunar-vcs-plugin git" + cd "$pkgdir" + _mv_files usr/libexec/tvp-git-helper \ + usr/share/icons/hicolor/*/apps/git.png +} + +_svn() { + pkgdesc="Subversion support for thunar-vcs-plugin" + depends= + install_if="thunar-vcs-plugin subversion" + cd "$pkgdir" + _mv_files usr/libexec/tvp-svn-helper \ + usr/share/icons/hicolor/*/apps/subversion.png +} + +md5sums="b2321096c706e42b85987f0114ab73bc thunar-vcs-plugin-0.1.4.tar.bz2" |