summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33290b88a9305299467669944fee028d6820a441 (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
# Maintainer: Behnam Momeni <sbmomeni [at the] gmail [dot] com>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Rémy Oudompheng <oudomphe@clipper.ens.fr>

pkgname=lib32-libspiro
_pkgbase=libspiro
pkgver=20221101
pkgrel=1
pkgdesc='Simplifies the drawing of beautiful curves (32-bit)'
url="https://github.com/fontforge/libspiro"
license=('GPL')
arch=('x86_64')
depends=('libspiro')
source=("https://github.com/fontforge/${_pkgbase}/releases/download/${pkgver}/${_pkgbase}-dist-${pkgver}.tar.gz")
sha256sums=('5984fb5af3e4e1f927f3a74850b705a711fb86284802a5e6170b09786440e8be')

prepare() {
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  export CFLAGS="-m32"
  export CXXFLAGS="-m32"

	cd "${srcdir}/${_pkgbase}-${pkgver}"
	autoreconf -i
	automake --foreign -Wall
}

build() {
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  export CFLAGS="-m32"
  export CXXFLAGS="-m32"

	cd "${srcdir}/${_pkgbase}-${pkgver}"
	export LDFLAGS=
	./configure --prefix=/usr --libdir=/usr/lib32
	make
}

package() {
	cd "${srcdir}/${_pkgbase}-${pkgver}"
	make DESTDIR="${pkgdir}" install
	install -Dm644 libspiro.pc "${pkgdir}/usr/lib32/pkgconfig/libspiro.pc"
  rm -r "${pkgdir}/usr/"{share,include}
}