Christoph Reiter 1e7737f090 Drop clang32 for packages without rdepends
See https://github.com/msys2/MINGW-packages/pull/21998
and 89521b9f8d

This is the first batch of removals to start things off.
2024-09-23 07:17:44 +02:00

30 lines
962 B
Bash

# Maintainer: Rui Abreu Ferreira <raf-ep@gmx.com>
_realname=bitop
pkgbase=mingw-w64-lua-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-lua51-${_realname}")
pkgver=1.0.2
pkgrel=2
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
url='https://bitop.luajit.org/'
license=('MIT')
pkgdesc='C extension adding bitwise operations on numbers for Lua (mingw-w64)'
depends=("${MINGW_PACKAGE_PREFIX}-lua51")
makedepends=("${MINGW_PACKAGE_PREFIX}-lua51"
"${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-pkgconf")
source=("https://bitop.luajit.org/download/LuaBitOp-${pkgver}.tar.gz")
sha256sums=('1207c9293dcd52eb9dca6538d1b87352bd510f4e760938f5048433f7f272ce99')
build() {
cd LuaBitOp-${pkgver}
${CC} -O2 -fPIC $(pkg-config --cflags lua5.1) -shared -o bit.dll bit.c $(pkg-config --libs lua5.1)
}
package() {
cd LuaBitOp-${pkgver}
install -Dm755 bit.dll "${pkgdir}${MINGW_PREFIX}/lib/lua/5.1/bit.dll"
}