mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=lua-microlight
|
|
pkgver=1.0
|
|
pkgrel=0
|
|
pkgdesc="a really compact set of general Lua functions"
|
|
url="http://stevedonovan.github.com/microlight/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="lua"
|
|
makedepends=""
|
|
install=""
|
|
subpackages=""
|
|
|
|
_fmt=tar.gz
|
|
|
|
source="http://dev.alpinelinux.org/archive/lua-microlight/lua-microlight-$pkgver.$_fmt"
|
|
|
|
_giturl="git://github.com/stevedonovan/Microlight.git"
|
|
_upload=dev.alpinelinux.org:/archive/lua-microlight
|
|
_builddir="$srcdir"/lua-microlight-$pkgver
|
|
|
|
archivetag() {
|
|
local _tag=$pkgver
|
|
local _pkg=$pkgname-$_tag.$_fmt
|
|
mkdir -p "$srcdir"
|
|
cd "$srcdir"
|
|
rm -rf "$pkgname"
|
|
git clone --bare $_giturl || return 1
|
|
git --git-dir ${_giturl##*/} archive \
|
|
--format $_fmt \
|
|
--prefix $pkgname-$pkgver/ \
|
|
--output $_pkg \
|
|
$_tag \
|
|
|| return 1
|
|
msg "New snapshot: $_pkg"
|
|
if [ -n "$_upload" ]; then
|
|
msg "Uploading to $_upload"
|
|
scp $_pkg $_upload || return 1
|
|
abump $pkgname-$_tag
|
|
fi
|
|
}
|
|
|
|
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() {
|
|
cd "$_builddir"
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
install -Dm644 "$_builddir"/ml.lua "$pkgdir"/usr/share/lua/5.1/ml.lua
|
|
}
|
|
|
|
md5sums="3441e61bd170c8b4ddcd7df14072bdcb lua-microlight-1.0.tar.gz"
|