Files
extra/tkimg/PKGBUILD
2025-06-22 20:39:04 -05:00

37 lines
1004 B
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=tkimg
_pkgname=Img
pkgver=1.4.14
pkgrel=1
pkgdesc="Provides the handling of several image formats beyond the standard formats in Tk"
url='https://wiki.tcl-lang.org/page/Img'
arch=('i686' 'x86_64')
license=('custom:BSD')
depends=('zlib' 'libjpeg-turbo' 'libpng' 'libtiff' 'tcl' 'tk' 'tcllib')
source=("https://downloads.sourceforge.net/${pkgname}/${_pkgname}-${pkgver}-Source.tar.gz")
sha512sums=('41bfc6909a6836cbdce34f5e5672a02ac67e6d7263a97d48b564994462cc089905a0824444bd849b6d228750bf09f0cf617989dc9008705938a283fa4e5f1b45')
build() {
cd "${_pkgname}-${pkgver}-Source"
if [[ $CARCH = "i686" ]]; then
./configure \
--prefix=/usr \
--enable-threads
else
./configure \
--prefix=/usr \
--enable-threads \
--enable-64bit
fi
make all
}
package() {
cd "${_pkgname}-${pkgver}-Source"
make INSTALL_ROOT="${pkgdir}" install
install -Dm644 license.terms -t "${pkgdir}/usr/share/licenses/${pkgname}"
}