mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
43 lines
1 KiB
Bash
43 lines
1 KiB
Bash
# $Id$
|
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
|
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - remove --enable-x86simd from configure
|
|
|
|
pkgname=zimg
|
|
pkgver=2.1
|
|
pkgrel=1
|
|
pkgdesc='Scaling, colorspace conversion, and dithering library'
|
|
arch=('i686' 'x86_64')
|
|
url='https://github.com/sekrit-twc/zimg'
|
|
license=('custom:WTFPL')
|
|
depends=('gcc-libs' 'glibc')
|
|
provides=('libzimg.so')
|
|
options=('!emptydirs')
|
|
source=("zimg-${pkgver}.tar.gz::https://github.com/sekrit-twc/zimg/archive/release-${pkgver}.tar.gz")
|
|
sha256sums=('e6d6c6c60b38ebaf74e2ab934b5b90b54e61f34e0a3f111c9da82958335f25da')
|
|
|
|
build() {
|
|
cd zimg-release-${pkgver}
|
|
|
|
# GCC 6
|
|
export CXXFLAGS="$CXXFLAGS -std=c++1z"
|
|
|
|
./autogen.sh
|
|
./configure \
|
|
--prefix='/usr' \
|
|
--disable-static
|
|
make
|
|
}
|
|
|
|
package(){
|
|
cd zimg-release-${pkgver}
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -dm 755 "${pkgdir}"/usr/share/licenses/zimg
|
|
install -m 644 COPYING "${pkgdir}"/usr/share/licenses/zimg/
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|