# Maintainer: Natanael Copa pkgname=lua-aports pkgver=0.5 pkgrel=5 pkgdesc="Lua modules for parsing aports tree" url="http://dev.alpinelinux.org/archive/lua-aports/" arch="noarch" license="MIT" depends="lua5.2-filesystem lua5.2-optarg lua5.2" depends_dev="" makedepends="$depends_dev" install="" replaces="abuild" subpackages="" source="http://dev.alpinelinux.org/archive/lua-aports/lua-aports-$pkgver.tar.xz 0001-buildrepo-fix-bug-when-repodest-is-set-with-buildrep.patch 0001-pkg-support-arch-arch-syntax.patch 0001-buildrepo-regenerate-index-if-packages-been-deleted.patch 0001-pkg-db-support-checkdepends-variable.patch " _builddir="$srcdir"/lua-aports-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { return 0 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } sha512sums="7047f0c902c8f65e8a45ed221e793dd0a0c8abf77f85b21b2d23c4f3c19ab12d9862565615718223ff2633465b85026f260bba4d5851a898475974c93f40797d lua-aports-0.5.tar.xz 74d282482c54671cdac7bb0b484818aa67a875719bd615d24fa69b8ebd9905b5cc685d029e478d7f7c4f351e86b94b6fd4ad207240e82071bcff3b23ff764caf 0001-buildrepo-fix-bug-when-repodest-is-set-with-buildrep.patch 442f4701ea8020dce801bd5ddc08cac2bccff5a70cf12cc3d1602d091ae3dffe3e6905037d04e78da87eb3734401718b3340721d25dac0be5dbb59dbec9dac5a 0001-pkg-support-arch-arch-syntax.patch 165418eea5bfa8ef0c9782b29f43a27e5fd922ce0f54db0d12c7fe92ab174bc134e31a87d835a3fef6935f81a204573246a33a63adaf77580e21cf9d924bffe1 0001-buildrepo-regenerate-index-if-packages-been-deleted.patch 1a9399f5488256edd17e51ab25d35e4b1b80fe4b7b2d701f5a008b0ef9af7f3b69925056bb9aafed362c2143b203bc6430dc938d92d76a5cde9b5728fb84300e 0001-pkg-db-support-checkdepends-variable.patch"