blob: 49742aa78f205c6f02806a5cbea66ef919d44366 (
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
|
# Maintainer: Klaus Alexander Seistrup <klaus@seistrup.dk>
# -*- mode: sh -*-
pkgname='libcanlock'
pkgver=3.3.0
pkgrel=5
pkgdesc='Standalone, modern RFC 8315 Netnews Cancel-Lock implementation for Unix'
arch=('aarch64' 'armv7h' 'x86_64')
url='https://micha.freeshell.org/libcanlock/'
license=(
'BSD-3-Clause' # SPDX-License-Identifier: BSD-3-Clause
'LicenseRef-Canlock' # SPDX-License-Identifier: LicenseRef-Canlock
'MIT' # SPDX-License-Identifier: MIT
)
depends=('glibc')
provides=('canlock' 'libcanlock')
source=("${url}src/${pkgname}-${pkgver}.tar.bz2")
options=('lto')
changelog="$pkgname.changelog"
# Taken from $url/src/info.html
sha256sums=('a709f59d6611031c293b483cfa0be6c37d6c68220cc94aee44e4a9eabf76988d')
build() {
cd "$srcdir/$pkgname-$pkgver"
# RFC-0023
# 🔗 https://rfc.archlinux.page/0023-pack-relative-relocs/
#
# ld(1) says: “Supported for i386 and x86-64.”
case "${CARCH:-unknown}" in
'x86_64' | 'i386' )
export LDFLAGS="$LDFLAGS -Wl,-z,pack-relative-relocs"
;;
* ) : pass ;;
esac
./configure \
--prefix=/usr \
--enable-legacy-api \
--enable-pc-files
make
make test
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm0644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
for _ext in BSD3 Canlock MIT; do
ln -sr "$pkgdir/usr/share/licenses/$pkgname/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE.$_ext"
done
install -Dm0644 README "$pkgdir/usr/share/doc/$pkgname/README"
}
b2sums=(
'001512a6d2d226aed93882de8d8f4f02a066cc67e6f21b411b8e1ee2ff0d4580732c90a6fc2756a79f992629cd18fbc319510960c39f33284c86bebfed3d4216'
)
# eof
|