### this file is sourced not run
PKGVER=3.7.0
PKGBUILD=2
PKGARCH=x86_64

# source: james
TARBALL=sylpheed-$PKGVER.tar.xz
MD5SUM=af1ea33e82050b8bd034b8cfbcd2f75e
SRC_URL=http://sylpheed.sraoss.jp/sylpheed/v3.7/$TARBALL
BUNDLE=

SLACKREQ='openssl libgpgme1 libgtkspell'
SLACKDESC="sylpheed: sylpheed $PKGVER (Email client)  
sylpheed:  
sylpheed: Sylpheed is a simple, lightweight but featureful, and easy-to-use 
sylpheed: e-mail client. This package comes with support for GnuPG.  
sylpheed: 
sylpheed: Note: This one is built against OpenSSL 1.1.1
sylpheed: If you still use OpenSSL 1.1.0 use the earlier version.
sylpheed: 
sylpheed: 
sylpheed: 
sylpheed:
"
SLACKSUG='gnupg1'

### default pkg_download
### default pkg_prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/sylpheed* &&
	patch -Np0 -i ../pkg/libsylph_ssl_c.patch &&
	true
}
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-updatecheck"
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	# setup to run as spot
	ln -sfv program-spot /usr/bin/sylpheed-spot &&
	sed -i -e 's|Exec=sylpheed|Exec=sylpheed-spot|' /usr/share/applications/sylpheed.desktop	
}

