Package Details: lib32-libpng12 1.2.56-2

Git Clone URL: https://aur.archlinux.org/lib32-libpng12.git (read-only)
Package Base: lib32-libpng12
Description: A collection of routines used to create PNG format graphics files (32-bit, 1.2 branch)
Upstream URL: http://www.libpng.org/pub/png/libpng.html
Licenses: custom
Submitter: anatolik
Maintainer: arthurzam
Last Packager: arthurzam
Votes: 270
Popularity: 31.725117
First Submitted: 2014-11-21 23:33
Last Updated: 2016-04-01 14:11

Latest Comments

arthurzam commented on 2016-04-04 05:52

@severach

delete old files from the directory and redownload.

severach commented on 2016-04-04 05:09

libpng-1.2.56-apng.patch.gz ... FAILED

carstene1ns commented on 2015-12-14 14:36

@michaelgod: Why do you want to download the source files in the prepare function? Do you even know what makepkg does? It is up to you to have a working download agent in makepkg.conf. Also, please use a pastebin next time.
--
@Thorleif: sourceforge has since ever provided shortcut URLs for their download mirror system. As long as you know the project and the file's name, it will redirect you to the right URL.
For example this also works: http://sf.net/projects/libpng/files/libpng-1.2.54.tar.xz
However, when the site is in recovery mode (which it has been quite often lately), it does not work, but in this case it is better to avoid it entirely and use another mirror.

michaelgod commented on 2015-12-14 13:59

try this


_pkgbasename=libpng
pkgname=lib32-libpng12
pkgver=1.2.55
pkgrel=2
pkgdesc="A collection of routines used to create PNG format graphics files (32-bit, 1.2 branch)"
arch=('x86_64')
url="http://www.libpng.org/pub/png/libpng.html"
license=('custom')
depends=('lib32-zlib' 'libpng12')
makedepends=('gcc-multilib')
options=('!libtool')

prepare(){
cd "${srcdir}"
# Add animated PNG (apng) support
# see http://sourceforge.net/projects/libpng-apng/
curl -o libpng-${pkgver}.tar.xz -LO http://sourceforge.net/projects/libpng/files/libpng12/${pkgver}/libpng-${pkgver}.tar.xz/download
curl -o libpng-${pkgver}-apng.patch.gz -LO http://sourceforge.net/projects/libpng-apng/files/libpng12/${pkgver}/libpng-${pkgver}-apng.patch.gz/download
tar -xvf libpng-${pkgver}.tar.xz
gunzip -f libpng-${pkgver}-apng.patch.gz
patch -Np0 -i "${srcdir}/libpng-${pkgver}-apng.patch"
}

build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

cd "${srcdir}/${_pkgbasename}-${pkgver}"

libtoolize --force --copy
aclocal
autoconf
automake --add-missing

./configure --prefix=/usr --libdir=/usr/lib32
make
}

package() {
cd "${srcdir}/${_pkgbasename}-${pkgver}"
make DESTDIR="${pkgdir}" install

rm -f ${pkgdir}/usr/lib32/{libpng.so,libpng.a,pkgconfig/libpng.pc}
rm -rf ${pkgdir}/usr/{include,share,bin}

mkdir -p "${pkgdir}/usr/share/licenses"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

Thorleif commented on 2015-12-12 10:19

The source file URL http://sourceforge.net/projects/libpng/files/libpng12/1.2.54/libpng-1.2.54.tar.xz looks to be incomplete. It should be: http://sourceforge.net/projects/libpng/files/libpng12/1.2.54/libpng-1.2.54.tar.xz/download

carstene1ns commented on 2015-09-18 21:00

bmbaker: Did you build it yourself or do you use alucryd-multilib repository? Check 'LocalFileSigLevel' in your /etc/pacman.conf. Maybe you enabled signature checking for packages that you build yourself?

bmbaker commented on 2015-09-18 15:32

Hi there,
I was just doing my updates and got this error from your package,

(84/84) checking keys in keyring [######################] 100%
(84/84) checking package integrity [######################] 100%
error: lib32-libpng12: missing required signature
error: failed to commit transaction (invalid or corrupted package)

i did the usual,
sudo pacman -Scc
sudo pacman -S archlinux-keyring
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --refresh-keys
sudo pacman -Sc
sudo pacman -Syyu
but the error persists
cheers

bmbaker commented on 2015-09-18 15:31

Hi threre,
i was just doing my updates and got this error fromyour package,

(84/84) checking keys in keyring [######################] 100%
(84/84) checking package integrity [######################] 100%
error: lib32-libpng12: missing required signature
error: failed to commit transaction (invalid or corrupted package)

i did the usual,
sudo pacman -Scc
sudo pacman -S archlinux-keyring
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --refresh-keys
sudo pacman -Sc
sudo pacman -Syyu
but the error persists
cheers

carstene1ns commented on 2015-07-08 19:19

eworm: You should keep in mind that we also have packages that only build with a specific (older) version of a library.
It may be easy to patch the source for a newer version in most of the cases, but sometimes it is not.
Also, the 1.2 branch of libpng is still maintained and widely used, it is still possible to use it in recent software.
If we follow your proposal and remove the header files from all 'versioned' (i.e. providing a specific, sometimes older version) packages, a lot of them will be unusable.

Feel free to take further discussion on this topic to aur-general.

eworm commented on 2015-07-08 16:01

That's true if you provide the latest stable packages. But when a package links against libpng it will choose libpng 1.6.x (or lib32-libpng 1.6.x, which really should depend on libpng). IMHO libpng12 and lib32-png12 are for binary compatibility only and do not need to ship header files.

All comments