blob: f8b103f1ff523ea2592a80716d96db79a4c160db (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Maintainer: Klaus Alexander Seistrup <klaus@seistrup.dk>
# -*- sh -*-
pkgname='slrn-snapshot'
_pkgname='slrn'
pkgver=1.0.4.9
_prever='pre1.0.4-9'
pkgrel=7
pkgdesc='An easy-to-use, text-mode, threaded Usenet/NNTP client/newsreader (development snapshot)'
arch=('aarch64' 'arm' 'armv6h' 'armv7h' 'i686' 'pentium4' 'x86_64')
url='https://jedsoft.org/snapshots/'
license=('GPL-2.0-or-later') # SPDX-License-Identifier: GPL-2.0-or-later
makedepends=('uudeview>=20230502')
depends=('glibc' 'openssl' 'sh' 'slang')
provides=('slrn')
conflicts=('slrn')
backup=(etc/slrnrc)
options=('!makeflags' 'docs' 'zipman' 'lto')
source=("https://jedsoft.org/snapshots/${_pkgname}-${_prever}.tar.gz")
sha256sums=(
'827d01c529c658492e45a376b99495a932d0d6be1e8e207df6f0062a25f1cff8'
)
sha512sums=(
'05c05f523565d7af3936f98665a85a1cb0589f4b25dd4a957bcd309293a50c9d624104cca86dae28e37d56243af6296e237214cb767ba2418c21265d91381a5a'
)
b2sums=(
'667654876dfb087da62288d646a78454a3387e65555e56d34835b9bd6dfe3cf47d5e61ef52e3b11b2df377660db271d1a74e4e986fa826f475cf2bd51ddf6a5d'
)
prepare() {
cd "$srcdir/$_pkgname-$_prever"
# GCC 14 barfs over undefined VA_COPY
# https://github.com/jedsoft/slrn/pull/1
# https://github.com/jedsoft/slrn/issues/2
sed -i '/#undef VA_COPY_AS_ARRAY/i#define VA_COPY va_copy' src/config.hin
}
# The current community/uudeview package is broken.
# To build the slrn-snapshot without UU support, set the
# SLRN_NO_UU variable to true|yes|t|y|1, e.g.:
# env SLRN_NO_UU=true makepkg
build() {
cd "$_pkgname-$_prever"
# RFC-0023
# 🔗 https://rfc.archlinux.page/0023-pack-relative-relocs/
#
# ld(1) says: “Supported for i386 and x86-64.”
case "Z${CARCH:-unknown}" in
'Zx86_64' | 'Zi386' )
export LDFLAGS="$LDFLAGS -Wl,-z,pack-relative-relocs"
;;
* ) : pass ;;
esac
case "$SLRN_NO_UU" in
[Tt][Rr][Uu][Ee] | [Yy][Ee][Ss] | [Tt] | [Yy] | 1 )
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-setgid-code \
--without-uu \
--with-slrnpull \
--with-ssl \
--enable-spoilers
make
;;
* )
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-setgid-code \
--with-slrnpull \
--with-ssl \
--with-uu \
--with-uuinc=/usr/include/uudeview \
--enable-spoilers
make UUDEVIEW_LIB='/usr/lib/libuu.a'
;;
esac
}
package() {
cd "$_pkgname-$_prever"
make DESTDIR="$pkgdir" install
install -Dm0644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
install -Dm0644 doc/slrn.rc "$pkgdir/etc/slrnrc"
}
# eof
|