Commit cb324f35 authored by Neophytos's avatar Neophytos

libquvi-scripts: imported lua-expat & lua-socket as dependencies

parent 059df764
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libquvi-scripts
pkgname=libquvi-scripts
pkgver=0.9.20131104
pkgrel=3
pkgdesc='Library for parsing video download links.'
arch=('x86_64')
url='http://quvi.sourceforge.net/'
license=('AGPL3')
depends=('lua-socket' 'lua-expat')
source=("http://downloads.sourceforge.net/sourceforge/quvi/${pkgname}-${pkgver}.tar.xz")
md5sums=('0ddb9e392b46cee0e7a4af260bc1a1a3')
build() {
cd "${pkgname}-${pkgver}"
./configure --prefix=/usr --with-nsfw --with-geoblocked
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
pkgname=lua-expat
_pkgname=luaexpat
pkgver=1.2.0
pkgrel=1
pkgdesc='SAX XML parser based on the Expat library'
arch=('x86_64')
url='http://matthewwild.co.uk/projects/luaexpat/'
license=('MIT')
depends=('lua' 'expat')
source=("http://matthewwild.co.uk/projects/luaexpat/luaexpat-$pkgver.tar.gz"
'config.51')
md5sums=('03efe50c7f30a34580701e6527d7bfee'
'64abbf5b602e0e31b68db2925a5e6b2f')
prepare() {
cd ${_pkgname}-${pkgver}
cp -L "$srcdir/config.51" config
}
build() {
cd ${_pkgname}-${pkgver}
make
}
package() {
cd ${_pkgname}-${pkgver}
make DESTDIR="$pkgdir" install
mv usr "$pkgdir"
install -Dm0644 doc/us/license.html "$pkgdir/usr/share/licenses/$pkgname/license.html"
}
LUA_LIBDIR= usr/lib/lua/5.1
LUA_DIR= usr/share/lua/5.1
LUA_INC= /usr/include/lua5.1
EXPAT_INC= /usr/include
# OS dependent
LIB_OPTION= -shared
LIBNAME= $T.so.$V
LUA_VERSION_NUM= 515
COMPAT_DIR= ../compat/src
# Compilation parameters
CWARNS = -Wall -pedantic \
-Waggregate-return \
-Wcast-align \
-Wmissing-prototypes \
-Wstrict-prototypes \
-Wnested-externs \
-Wpointer-arith \
-Wshadow \
-Wwrite-strings
CFLAGS = $(CWARNS) -ansi -O2 -I$(LUA_INC) \
-I$(COMPAT_DIR) -I$(EXPAT_INC) -fPIC
CC = gcc
pkgname=lua-socket
pkgver=3.0rc1
pkgrel=1
pkgdesc='Networking support library for the Lua language'
arch=('x86_64')
url='https://github.com/diegonehab/luasocket'
license=('MIT')
depends=('lua')
source=("https://github.com/diegonehab/luasocket/archive/v${pkgver/rc/-rc}.tar.gz")
md5sums=('08bd2f265b244eb4bf5c2c36bf89b759')
build() {
cd luasocket-${pkgver/rc/-rc}
make LUAV=5.1
}
package() {
cd luasocket-${pkgver/rc/-rc}
make DESTDIR="$pkgdir/" LUAV=5.1 prefix=/usr install-unix
install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment