Skip to content

Instantly share code, notes, and snippets.

@lahwaacz
Created Jul 16, 2013
Embed
What would you like to do?
minisip-svn PKGBUILD (still broken)
# Contributor: Jakub Klinkovský <kuba.klinkovsky@gmail.com>
# Contributor: rolater <rolater@yahoo.com>
pkgname=minisip-svn
_pkgname=minisip
pkgver=4584
pkgrel=1
pkgdesc="SIP User Agent with focus on security: TLS, end-to-end security, SRTP, MIKEY (DH, PSK, PKE)"
arch=('i686' 'x86_64')
url="http://www.minisip.org"
license="GPL/LPGL"
depends=('libglademm' 'openssl')
makedepends=('subversion' 'perl')
source=("$_pkgname::svn://svn.minisip.org/minisip/trunk")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
svnversion | tr -d [A-z]
}
prepare() {
cd "$srcdir/$_pkgname"
# this is critical not to change permissions on /usr/,/usr/bin,....
perl -pi -e "s/umask/#umask/" ./build.pl
# another bug: this file is needed in order to compile:
touch "$srcdir/$_pkgname/minisip/minisip/gui/gtkgui/version.h"
# force automake version
export AMVERS=$(automake --version | sed -e '1s/[^0-9]*//' -e q)
}
build() {
cd "$srcdir/$_pkgname"
./build.pl --prefix=/usr compile minisip
}
package() {
cd "$srcdir/$_pkgname"
./build.pl --destdir=$pkgdir install minisip
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment