blob: 40a929e5dcd1639fb2dbe43a59e6a5faa2c4cd79 (
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
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Alex Jones <jonesax@hush.com>
# Contributor: Dragan Glumac <dragan.glumac@gmail.com
set -u
_gitauth='AlexsJones'
_pkgname='jnxlibc'
_vopt='v' # '' or 'v', starts at v1.7
pkgname="${_pkgname}"
pkgver='2.2'
pkgrel='1'
pkgdesc='General purpose C library with many useful components'
arch=('any')
url="https://github.com/${_gitauth}/${_pkgname}"
license=('GPL')
groups=('base-devel')
depends=('glibc')
makedepends=('doxygen' 'cmake')
_verwatch=("${url}/releases" "${url#*github.com}/archive/${_vopt}\(.*\)\.tar\.gz" 'l')
_srcdir="${pkgname}-${pkgver}"
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${_vopt}${pkgver}.tar.gz")
sha256sums=('7415d7b6be16cdcf8f526d84fcbf500ffceb118d5e4b375914a2f94fc29462b6')
prepare() {
set -u
cd "${_srcdir}"
#cd 'platform/linux' || :
#if [ -s 'CMakeLists.txt' ]; then
cmake .
#fi
#if [ -s 'configure' ]; then
# ./configure
#fi
set +u
}
build() {
set -u
cd "${_srcdir}"
#cd 'platform/linux' || :
make
set +u
}
check() {
set -u
cd "${_srcdir}"
# Tests are slow
#./test/run_tests
set +u
}
package() {
set -u
cd "${_srcdir}"
#cd 'platform/linux' || :
make DESTDIR="${pkgdir}" install
#mkdir -p "${pkgdir}/usr/include/"
#cp -prf 'jnxc_headers' "${pkgdir}/usr/include"
##mkdir -p "${pkgdir}/usr/share/man/man3"
#install -Dpm755 'lib/libjnxc.so.1.0' -t "${pkgdir}/usr/lib"
#ln -sf '/usr/lib/libjnxc.so.1.0' "${pkgdir}/usr/lib/libjnxc.so"
#ln -sf '/usr/lib/libjnxc.so.1.0' "${pkgdir}/usr/lib/libjnxc.so.1"
set +u
}
set +u
|