# Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> setvar _luaver = '5.2' setvar pkgname = 'ldoc' setvar pkgver = '1.4.6' setvar pkgrel = '0' setvar pkgdesc = ""Documentation tool for Lua"" setvar url = ""http://github.com/stevedonovan/LDoc"" setvar arch = ""noarch"" setvar license = ""MIT"" setvar depends = ""lua$_luaver-penlight lua$_luaver"" setvar makedepends = """" setvar install = """" setvar subpackages = '' setvar source = ""LDoc-$pkgver.tar.gz::https://github.com/stevedonovan/LDoc/archive/$pkgver.tar.gz"" setvar _luashare = "/usr/share/lua/$_luaver" setvar _builddir = ""$srcdir"/LDoc-$pkgver" proc prepare { local i cd $_builddir || return 1 for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } sed -i "1s:.*:#!/usr/bin/lua$_luaver:" ldoc.lua } proc build { cd $_builddir find . -type d | xargs chmod 755 } proc package { cd $_builddir install -Dm755 ldoc.lua "$pkgdir"/usr/bin/ldoc || return 1 install -d "$pkgdir"/$_luashare || return 1 cp -a ldoc "$pkgdir"/$_luashare/ } setvar md5sums = ""e292a11e9bbf1daf429d6f547d2f1afa LDoc-1.4.6.tar.gz"" setvar sha256sums = ""4b73e78a0325fb3c295d015ddb60b5cee5b647cecb5c50ce8f01319b53bd536f LDoc-1.4.6.tar.gz"" setvar sha512sums = ""bcaddba4e462a4fb0aa0d8fcff390de3f195fa5cc569d8f05b84ad0fff900f5ac945be7a2eb15cf5ca60cc462f02c874579e4a19e33776178a04104ef9d944af LDoc-1.4.6.tar.gz""