Created
September 7, 2012 18:55
-
-
Save deontologician/3668586 to your computer and use it in GitHub Desktop.
PKGBUILD for openconnect-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: dschauer, Dwight Schauer <[email protected]> | |
pkgname=openconnect-git | |
pkgver=20120907 | |
pkgrel=1 | |
pkgdesc="VPN client (intended to be) compatible with Cisco AnyConnect" | |
arch=(i686 x86_64) | |
url="http://git.infradead.org/users/dwmw2/openconnect.git" | |
license=('LGPL') | |
groups=() | |
depends=() | |
makedepends=('git') | |
provides=(openconnect anyconnect) | |
conflicts=() | |
replaces=() | |
backup=() | |
options=() | |
install= | |
source=(on_connect.patch) | |
noextract=() | |
#md5sums=() #generate with 'makepkg -g' | |
md5sums=('2360ec0f88289a50106247f28d3b012e') | |
_gitroot="git://git.infradead.org/users/dwmw2/openconnect.git" | |
_gitname="openconnect" | |
build() { | |
cd "${srcdir}" | |
msg "Connecting to GIT server...." | |
if [ -d ${_gitname} ] ; then | |
cd ${_gitname} && git pull origin | |
msg "The local files are updated." | |
else | |
git clone ${_gitroot} | |
cd ${_gitname} | |
fi | |
msg "GIT checkout done or server timeout" | |
msg "Starting make..." | |
# | |
# BUILD HERE | |
# | |
cd "${srcdir}/openconnect" | |
./autogen.sh | |
./configure | |
make clean | |
[ -f main.c.0 ] && cp main.c.0 main.c | |
cp main.c main.c.0 | |
# patch --verbose < ${srcdir}/on_connect.patch || return 1 | |
make CC=gcc EXTRA_CFLAGS="-O2 -Wall -Werror" all || return 1 | |
make -j4 CC=gcc EXTRA_CFLAGS="-O2" || return 1 | |
make DESTDIR="${pkgdir}" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment