#Maintainer: Dimitris Tzemos (dijemos~at~gmail~dot~com)

pkgname=file-roller
pkgver=3.16.5
pkgrel=1dj
#source=(https://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
source=("file-roller-3.16.5-modified-1.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers")
url=http://fileroller.sourceforge.net/
options=('nosrcpack' 'noautodotnew')

doinst() {
glib-compile-schemas /usr/share/glib-2.0/schemas
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"file-roller is an archive manager for the GNOME desktop environment"
"With File Roller you can:"
""
"    * Create and modify archives."
"    * View the content of an archive."
"    * View a file contained in the archive."
"    * Extract files from the archive."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	
	./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --infodir=/usr/info \
  --docdir=/usr/doc/$pkgname-$pkgver \
  --localedir=/usr/share/locale \
  --disable-scrollkeeper \
  --with-gtk=2.0 \
  --disable-static \
  --enable-shared \
  --build=$arch-slackware-linux
	
	make V=1 || return 1
	make install DESTDIR=$startdir/pkg
} 
