public
Last active

luasocket-git PKGBUILD for Arch Linux updated according latest official AUR Guidelines.

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
# Maintainer: Alfredo Palhares <masterkorp@masterkorp.net>
# Contributor: Shizeeg Unadequatov <shizeeque@gmail.com>
 
# Please submit your patches to:
# https://github.com/masterkorp/pkgbuilds
 
pkgname=luasocket-git
_gitname=luasocket
pkgver=20130605
pkgrel=2
pkgdesc="Luasocket is the most comprehensive networking support library for the Lua language, with IPv6 support. This version compatible with Lua 5.1 and 5.2"
arch=('i686' 'x86_64')
url="https://github.com/diegonehab/luasocket/"
license=('MIT')
depends=('lua' 'glibc')
makedepends=('git')
conflicts=('luasocket' 'luasocket-hg')
provides=('lua-socket=2.1' 'lua51-socket=2.1')
 
source=('luasocket::git://github.com/diegonehab/luasocket.git'
'lua-license.html::http://www.lua.org/copyright.html')
 
md5sums=('SKIP'
'2fb4d59102a072eac02c95a74cd16b95')
 
pkgver() {
cd "$_gitname"
# generate version from git commit count
# echo "$(git rev-list --count makepkg).$(git rev-parse --short makepkg)"
 
# also you can generate version from tip date
echo $(git log -1 --date=short | grep Date | sed 's|[^0-9]||g')
}
 
build() {
cd "$_gitname"
make PLAT=linux prefix=/usr
}
 
package() {
cd "$_gitname"
make DESTDIR="$pkgdir" prefix=/usr install-both
install -D -m0644 "$srcdir/lua-license.html" "$pkgdir/usr/share/licenses/$pkgname/lua-license.html"
 
find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}
# vim: set ts=2 sw=2 et:

fix provides=() and pkgver()
now it upgrades both versions correctly.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.