blob: add3a9e5fc4e5a325d4d1a7a42ab5b9799a449e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: Alexandre Demers <alexandre.f.demers@gmail.com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
_pkgbasename=zimg
pkgname=("lib32-$_pkgbasename")
pkgver=3.0.5
pkgrel=1
pkgdesc='Scaling, colorspace conversion, and dithering library'
arch=(x86_64)
url=https://github.com/sekrit-twc/zimg
license=(custom:WTFPL)
depends=(
"${_pkgbasename}>=${pkgver}"
"lib32-glibc"
"lib32-gcc-libs"
)
makedepends=(
"git"
)
provides=(libzimg.so)
options=(!emptydirs)
_tag=e5b0de6bebbcbc66732ed5afaafef6b2c7dfef87
source=(git+https://github.com/sekrit-twc/zimg.git#tag=${_tag})
sha256sums=(SKIP)
prepare() {
cd ${_pkgbasename}
./autogen.sh
}
pkgver() {
cd ${_pkgbasename}
git describe --tags | sed 's/^release-//'
}
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd ${_pkgbasename}
./configure \
--prefix='/usr' \
--libdir=/usr/lib32 \
--host=i686-linux-gnu \
--enable-x86simd \
--disable-static
make
}
package(){
cd ${_pkgbasename}
make DESTDIR="${pkgdir}" install
rm -r "${pkgdir}"/usr/include
rm -r "${pkgdir}"/usr/share/doc/zimg/
mkdir -p "${pkgdir}/usr/share/doc/${pkgname}/"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
ln -s "/usr/share/doc/${_pkgbasename}/"README.md "${pkgdir}/usr/share/doc/${pkgname}/"
ln -s "/usr/share/doc/${_pkgbasename}/COPYING" "${pkgdir}/usr/share/doc/${pkgname}/"
}
# vim: ts=2 sw=2 et:
|