### this file is sourced not run
PKGVER=3.57
PKGBUILD=1
PKGARCH=noarch

# source: james
#
# Note to self: I want to merge this with xdg-utils and merge all the
# default-app handling stuff. It's annoying.
#
TARBALL=mime-support_3.57.tar.gz
MD5SUM=faeec3564acb160bd57048226f1060e5 
#SRC_URL=http://ftp.de.debian.org/debian/pool/main/m/mime-support/$TARBALL
SRC_URL=http://distro.ibiblio.org/fatdog/source/700/$TARBALL # our cache
BUNDLE=

SLACKREQ=
SLACKDESC='mime-support: mime-support 3.57 (MIME support files)  
mime-support:  
mime-support: This package contains /etc/mime.types, /etc/mailcap and their 
mime-support: support files for MIME identification purposes, separate from 
mime-support: file(1) magic and freedesktop shared-mime packages. 
mime-support: 
mime-support: This package originally comes from Debian but here only the 
mime-support: only the data files are included. 
mime-support: 
mime-support: The utilities are all home-grown.
mime-support: 
'

### default pkg_download
### default pkg_prepare
### package
pkg_package() {
	cp $CHROOT_DIR/tmp/pkg/mailcap etc/mailcap &&    # pre-defined good mailcap
	cp $CHROOT_DIR/tmp/pkg/fix-mailcap.sh usr/bin && # fix double entries
	cp $CHROOT_DIR/tmp/pkg/test-mailcap.sh usr/bin   # test mailcap
}

### build
pkg_build() {
	cd /tmp/mime-support*
	chown -R 0:0 . && 
	mkdir -p /usr/share/man/man5  &&
	install -m 644 mime.types 		/etc/ &&
	install -m 644 mailcap.man		/usr/share/man/man5/mailcap.5 &&
	
	####
	# irrelevant files, and most of these needs perl
	# I need to write a replacement for update-mime, but rather lazy about it
	####
	# mkdir -p /usr/lib/mime/packages /usr/share/man/man8 /usr/share/man/man1 &&
	# install -m 644 mailcap    		/usr/lib/mime/ &&	
	# install -m 644 mailcap.order   	/etc/ &&
	# install -m 644 mailcap.order.man	/usr/share/man/man5/mailcap.order.5 &&	
	# install -m 755 update-mime		/usr/sbin/ &&
	# install -m 644 update-mime.man	/usr/share/man/man8/update-mime.8 &&	
	# install -m 644 mailcap.entries	/usr/lib/mime/packages/mime-support &&	
	# install -m 755 run-mailcap		/usr/bin/ &&
	# install -m 644 run-mailcap.man	/usr/share/man/man1/run-mailcap.1 &&
	
	pkg_build_slackdesc
}


 
