← recipes

Commit 3037390

0
plików
+0
dodanych
-0
usuniętych
@@ -2,31 +2,48 @@ pkgname: ruby
2 2 pkgver: '4.0.6'
3 3 pkgrel: 1
4 4 pkgdesc: An object-oriented language for quick and easy programming
5 -url: 'https://ruby-lang.org'
5 +url: 'https://www.ruby-lang.org'
6 6 arch: x86_64
7 7 license:
8 -- BSD custom
9 -depends: []
8 +- Ruby
9 +- BSD-2-Clause
10 +
11 +depends:
12 +- openssl
13 +- yaml
14 +- libxcrypt
15 +
10 16 makedepends:
11 17 - doxygen
12 18 - openssl
13 19 - yaml
14 20 - libxcrypt
21 +
15 22 source:
16 -- ruby-4.0.5-openssl4_fixes-1.patch
17 -- 'https://cache.ruby-lang.org/pub/ruby/4.0/ruby-${pkgver}.tar.xz'
23 +- "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-${pkgver}.tar.xz"
24 +
18 25 sha256sums:
19 -- SKIP
20 26 - 9c9d121fe3314ea7c801e690b9de981d2b9d12d7849db99c27482468a541ba0a
27 +
21 28 build: |
22 29 cd ${pkgname}-${pkgver}
23 - patch -Np1 -i ../ruby-4.0.5-openssl4_fixes-1.patch
24 - ./configure --prefix=/usr --enable-shared \
25 - --docdir=/usr/share/doc/${pkgname}
30 +
31 + # Flagi zapobiegające błędom C99/C11 na nowszych wersjach GCC
32 + export CFLAGS="${CFLAGS} -fPIC"
33 +
34 + ./configure --prefix=/usr \
35 + --sysconfdir=/etc \
36 + --localstatedir=/var \
37 + --sharedstatedir=/var/lib \
38 + --enable-shared \
39 + --enable-install-doc \
40 + --docdir=/usr/share/doc/${pkgname}
41 +
26 42 make
27 43 make capi
28 -package: |-
44 +
45 +package: |
29 46 cd ${pkgname}-${pkgver}
30 - make DESTDIR=${PKGDIR} install
31 - install -D -m644 COPYING ${PKGDIR}/usr/share/licenses/ruby/LICENSE
32 - install -D -m644 BSDL ${PKGDIR}/usr/share/licenses/ruby/BSDL
47 + make DESTDIR="${PKGDIR}" install
48 + install -Dm644 COPYING "${PKGDIR}/usr/share/licenses/${pkgname}/COPYING"
49 + install -Dm644 BSDL "${PKGDIR}/usr/share/licenses/${pkgname}/BSDL"