blob: a8049025516fa7972c3671a5ea41f16f5012ee5e (
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
69
70
71
72
73
74
75
|
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
_name="gamin"
pkgname="lib32-${_name}"
pkgver=0.1.10
pkgrel=1
pkgdesc="File and directory monitoring system defined to be a subset of the FAM (File Alteration Monitor) (32-bit)"
arch=('x86_64')
url="https://gitlab.gnome.org/Archive/gamin"
license=('LGPL-2.0-only')
depends=("${_name}" 'lib32-glib2' 'lib32-glibc')
provides=('lib32-fam' 'libgamin-1.so' 'libfam.so')
conflicts=('lib32-fam')
_pkgsrc="${_name}-${pkgver}"
source=("${_pkgsrc}.tar.gz::https://download.gnome.org/sources/${_name}/${pkgver%.*}/${_pkgsrc}.tar.gz"
# "${_name}_linux-specific_armel-gnueabi.patch::${url}/-/commit/05dcfcd69848e119c6a30d363bc41e896029f8af.patch"
"${_name}_poll_files_on_nfs4.patch::${url}/-/commit/b92b17ecced6df463da73d6de566740cf5cd00d4.patch"
"${_name}_deprecated_g_const_return.patch::${url}/-/commit/77fe68f43ce75e920b0a94b0bc572cf3a21714f2.patch"
"${_name}_server_deadlock_ih_sub_cancel.patch::${url}/-/commit/f9c67a13af33f389429e4e760f2023a23a9ac19f.patch")
sha512sums=('21bfe6fcf8fb3117cd5a08c8ce3b8d0d1dd23e478e60a95b76c20d02cc29b050dde086578d81037990484ff891c3e104d2cbbf3d294b4a79346b14a0cae075bb'
'59b78ca12c31661ea85a213cb7dc79c1bf35a53639f073fdc7618200e0d5c0c15c50b3670f1f31c156640a85a2bad8eba5e7622c7eab9dff5124a9c5c8d1775f'
'4c339bb91ea8b930b95bbfb4cbb71bb1e1a9e7d41f22639e8eca3719089a9110d8538087751c16f8259f1834e84b07a968f95b1a79c06b6bb5516c5638722c18'
'69e6a0cbaffacde809d7be6839269d61d29fa8fcec4b7fa8c4c69cf41eb612c5f03cba5cb3e6b58fc25b63158a3d71f8895be96213edbb5a9d9150057a6d58c2')
prepare() {
cd "${srcdir}/${_pkgsrc}"
# https://bugzilla.gnome.org/show_bug.cgi?id=588338
# patch -Np1 -i "${srcdir}/${_name}_linux-specific_armel-gnueabi.patch"
# https://bugzilla.gnome.org/show_bug.cgi?id=693006
patch -Np1 -i "${srcdir}/${_name}_poll_files_on_nfs4.patch"
# https://bugzilla.gnome.org/show_bug.cgi?id=658884
patch -Np1 -i "${srcdir}/${_name}_deprecated_g_const_return.patch"
# https://bugzilla.gnome.org/show_bug.cgi?id=667230, https://bugs.archlinux.org/task/33642
patch -Np1 -i "${srcdir}/${_name}_server_deadlock_ih_sub_cancel.patch"
# cd "python"
# sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' "${_name}.py"
}
build() {
export CFLAGS+=" -m32 -Wno-error=implicit-function-declaration -Wno-error=return-mismatch"
export CXXFLAGS+=" -m32 -Wno-error=implicit-function-declaration -Wno-error=return-mismatch"
export LDFLAGS+=" -m32"
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
cd "${srcdir}/${_pkgsrc}"
autoreconf -vfi
./configure \
--prefix='/usr' \
--program-suffix="-32" \
--lib{exec,}dir='/usr/lib32' \
--build=i686-pc-linux-gnu \
--with-threads \
--without-python \
--disable-docs \
--disable-static \
--disable-debug \
--disable-debug-api
make
}
# check() {
# cd "${srcdir}/${_pkgsrc}"
# make check
# }
package() {
cd "${srcdir}/${_pkgsrc}"
make DESTDIR="${pkgdir}" install
cd "${pkgdir}/usr"
rm -rf "include" "share"
}
# vim:set ts=2 sw=2 et:
|