🔒 Repository is read-only – file editing is disabled.

recipes/utils/lua/PAGBUILD.yaml main

38 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435363738
pkgname: lua
pkgver: '5.4.8'
pkgrel: '1'
pkgdesc: 'A programming language designed for extending applications'
url: 'https://www.lua.org'
arch: x86_64
depends: []
makedepends: []
source:
- 'https://www.lua.org/ftp/${pkgname}-${pkgver}.tar.gz'
- 'lua.pc'
- 'https://www.linuxfromscratch.org/patches/blfs/svn/${pkgname}-${pkgver}-shared_library-1.patch'

sha256sums:
- SKIP
- SKIP
- SKIP

build: |
  cd ${pkgname}-${pkgver}
  patch -Np1 -i ../${pkgname}-${pkgver}-shared_library-1.patch
  sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h

     	make linux
  make INSTALL_TOP=${PKGDIR}/usr  TO_LIB="liblua.so liblua.so.5.4 liblua.so.${pkgver}" \
  INSTALL_DATA="cp -d" INSTALL_MAN=${PKGDIR}/usr/share/man/man1 install
  mkdir -pv ${PKGDIR}/usr/share/doc/${pkgname}-${pkgver}
  cp -v doc/*.{html,css,gif,png} ${PKGDIR}/usr/share/doc/${pkgname}-${pkgver}
  mkdir -p ${PKGDIR}/usr/lib/pkgconfig
  sed "s/%VER%/5.4/g;s/%REL%/${pkgver}/g" ../lua.pc \
  > lua.pc

  install -Dm644 lua.pc ${PKGDIR}/usr/lib/pkgconfig/${pkgname}54.pc
  ln -sf /usr/lib/pkgconfig/${pkgname}54.pc \
  ${PKGDIR}/usr/lib/pkgconfig/${pkgname}.pc

package: |
  true