summaryrefslogblamecommitdiff
path: root/user/lua-expat/APKBUILD
blob: 704f891734eadb15893434bde39bfc6705fda3e0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                   
                                                        
                 
            





                                                   

                                                                                                 

                                   


                      
                                                       

           


                                                     
 
                                                                                                                                                                    
# Contributor: Mika Havela <mika.havela@gmail.com>
# Contribtor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=lua-expat
pkgver=1.3.3
pkgrel=0
pkgdesc="SAX XML parser based on the Expat library"
url="https://matthewwild.co.uk/projects/luaexpat/"
arch="all"
license="MIT"
depends="lua5.3"
makedepends="lua5.3-dev expat-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/tomasguisasola/luaexpat/archive/v1.3.3.tar.gz
	32bit.patch
	"
builddir="$srcdir/luaexpat-$pkgver"

build() {
	make LUA_V=5.3
}

check() {
	LUA_CPATH="./src/?.so.1.3.3" lua tests/test.lua
}

package() {
	make \
		LUA_LIBDIR="$pkgdir"/usr/lib/lua5.3 \
		LUA_DIR="$pkgdir"/usr/share/lua5.3 \
		LUA_V=5.3 DESTDIR="$pkgdir" install
}

sha512sums="aa3f730c64cae3791fc1125302178ec2398d2380e8ec0e65ca4b29f532f181f149baaf555bf687e502b28726d3fd0baafd4f73cf26f04f625d18bbaddb043d63  lua-expat-1.3.3.tar.gz
ac5b05991dfe36bcc0c9ff7570110dbb1face387c0b65e4735b99cedaff5e29311a919b5e8ce6dae2ac674eadd2fa0bea6ec547754071d325dcce6460eeef36e  32bit.patch"