summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenya Sovetkin2015-08-07 10:30:26 +0200
committerJenya Sovetkin2015-08-07 10:30:26 +0200
commit20e833cc6cbbb13bd7999692d51f54b6cb049493 (patch)
treeadf4a0cf0f06ddc23ba763bcabe2babebbcfe5c0
downloadaur-20e833cc6cbbb13bd7999692d51f54b6cb049493.tar.gz
Initial commit
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD61
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..be408de39af
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,11 @@
+pkgbase = shellinabox-git
+ pkgver = 2.14
+ pkgrel = 1
+ url = https://code.google.com/p/shellinabox/
+ arch = any
+ license = GPL2
+ makedepends = git
+ makedepends = gcc
+
+pkgname = shellinabox-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d93d07f7ef6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Jenya Sovetkin <e dot sovetkin at gmail dot com>
+pkgname=shellinabox-git
+pkgver=2.14
+pkgrel=1
+pkgdesc=""
+arch=('any')
+url="https://code.google.com/p/shellinabox/"
+license=('GPL2')
+groups=()
+depends=()
+makedepends=('git' 'gcc')
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+source=()
+noextract=()
+md5sums=() #generate with 'makepkg -g'
+
+_gitroot=$url
+_gitname=shellinabox
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+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"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname-build"
+
+ #
+ # BUILD HERE
+ #
+ export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/}"
+ ./configure --disable-login --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et: