public
anonymous / PKGBUILD.txt
Created

PKGBUILD

  • Download Gist
PKGBUILD.txt
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
# 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
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.