### this file is sourced not run
PKGVER=2.2.5
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=libgd-$PKGVER.tar.xz
MD5SUM=8d8d6a6189513ecee6e893b1fb109bf8
SRC_URL=https://github.com/libgd/libgd/releases/download/gd-$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='libpng freetype2 fontconfig libjpeg-turbo libXpm libvpx libtiff' # 
SLACKDESC="libgd: libgd $PKGVER (Graphics library)  
libgd:  
libgd: GD is an open source code library for the dynamic creation of images by 
libgd: programmers. GD is written in C, and wrappers are available for Perl, 
libgd: PHP and other languages. GD creates PNG, JPEG, GIF, WebP, XPM, BMP 
libgd: images, among other formats. GD is commonly used to generate charts, 
libgd: graphics, thumbnails, and most anything else, on the fly. While not 
libgd: restricted to use on the web, the most common applications of GD 
libgd: involve website development.  
libgd: 
libgd: https://libgd.github.io/
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static"
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# multi-lib
	mv -v /usr/bin/gdlib-config{,-64} &&
	ln -sfv multiarch_wrapper /usr/bin/gdlib-config
}
