blob: 33e22928f548849ebf7a3831be83f2fa0f3eb8b5 (
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
|
# Maintainer: Daniel Bermond < gmail-com: danielbermond >
pkgname=trio
pkgver=1.16
pkgrel=2
pkgdesc='Portable string functions, focus on the *printf() and *scanf() clones'
arch=('x86_64')
url='https://sourceforge.net/projects/ctrio/'
license=('custom')
source=("http://downloads.sourceforge.net/project/ctrio/${pkgname}/${pkgname}-${pkgver}.tar.gz"
'trio-fix-install.patch')
sha256sums=('84d0e74f5b25f0b6c7d9b264ef41f98908e65a5056d4e75c5ef0e05d6a69fc0a'
'727d780675109717b967ba4449861f573b3d43f56af97a59ca5ab08af38a99b4')
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/trio-fix-install.patch"
}
build() {
cd "${pkgname}-${pkgver}"
./configure --prefix='/usr'
make
}
check () {
cd "${pkgname}-${pkgver}"
make test
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="$pkgdir" install
install -D -m644 README "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# create missing library symbolic links
cd "${pkgdir}/usr/lib"
local _libmajor
_libmajor="$(printf libtrio.so.*.*.* | sed 's/libtrio\.so\.//;s/\.[0-9]*\.[0-9]*$//')"
ln -s "libtrio.so.${_libmajor}".*.* "libtrio.so.${_libmajor}"
ln -s "libtrio.so.${_libmajor}".*.* libtrio.so
}
|