Created
January 26, 2013 12:42
-
-
Save anonymous/4642098 to your computer and use it in GitHub Desktop.
PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Limao Luo <luolimao+AUR@gmail.com> | |
# | |
# (Added from thunar package) | |
# Contributor: Evangelos Foutras <evangelos@foutrelis.com> | |
# Contributor: Andrew Simmons <andrew.simmons@gmail.com> | |
_pkgname=thunar | |
pkgname=$_pkgname-git | |
pkgver=20130126 | |
pkgrel=1 | |
pkgdesc="New modern file manager for Xfce - migration to GIO." | |
arch=(i686 x86_64) | |
license=(GPL2) | |
url=http://$_pkgname.xfce.org | |
groups=(xfce4-git) | |
depends=(dbus desktop-file-utils exo-git gtk2 hicolor-icon-theme libexif libpng) | |
makedepends=(git xfce4-dev-tools) | |
provides=($_pkgname) | |
conflicts=($_pkgname{,-devel}) | |
options=(!libtool) | |
install=$_pkgname.install | |
_gitroot=git://git.xfce.org/xfce/$_pkgname | |
_gitname=$_pkgname | |
build() { | |
cd "$srcdir" | |
msg "Connecting to the GIT server..." | |
if [[ -d $_gitname/.git ]]; then | |
pushd $_gitname && git pull | |
msg2 "The local files are updated." | |
popd | |
else | |
git clone $_gitroot | |
fi | |
msg2 "GIT checkout done or server timeout" | |
rm -rf $_gitname-build/ | |
cp -r $_gitname/ $_gitname-build/ | |
cd $_gitname-build/ | |
msg "Building..." | |
./autogen.sh \ | |
--prefix=/usr \ | |
--sysconfdir=/etc \ | |
--libexecdir=/usr/lib \ | |
--localstatedir=/var \ | |
--disable-static \ | |
--enable-gio-unix \ | |
--enable-dbus \ | |
--enable-startup-notification \ | |
--enable-gudev \ | |
--enable-exif \ | |
--enable-pcre \ | |
--enable-gtk-doc \ | |
--disable-debug | |
make | |
} | |
package() { | |
cd "$srcdir"/$_gitname-build/ | |
make DESTDIR="$pkgdir" install | |
sed -i ':x-directory/gnome-default-handler;:d' "$pkgdir"/usr/share/applications/Thunar-folder-handler.desktop | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment