diff --git a/libsnl-svn/.SRCINFO b/libsnl-svn/.SRCINFO new file mode 100644 index 0000000..8b266a9 --- /dev/null +++ b/libsnl-svn/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = libsnl-svn + pkgdesc = libSNL is a library of routines used for the manipulation of NURBS curves and surfaces. + pkgver = 18 + pkgrel = 5 + url = http://libsnl.sourceforge.net/ + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = subversion + provides = libsnl + conflicts = libsnl + source = libsnl::svn://svn.code.sf.net/p/libsnl/code/trunk + md5sums = SKIP + +pkgname = libsnl-svn + diff --git a/libsnl-svn/.gitrepo b/libsnl-svn/.gitrepo new file mode 100644 index 0000000..2665937 --- /dev/null +++ b/libsnl-svn/.gitrepo @@ -0,0 +1,12 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://aur.archlinux.org/libsnl-svn + branch = master + commit = 0c63efff07af98b780941a5f12ea71d78c202807 + parent = a792eddff198b0bf50ffa2c9b9c3fe845dbf3513 + method = merge + cmdver = 0.4.1 diff --git a/libsnl-svn/PKGBUILD b/libsnl-svn/PKGBUILD new file mode 100644 index 0000000..0c1569e --- /dev/null +++ b/libsnl-svn/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Maurizio D'Addona + +_svnname='libsnl' + +pkgname=libsnl-svn +pkgver=18 +pkgrel=5 +pkgdesc="libSNL is a library of routines used for the manipulation of NURBS curves and surfaces." +arch=('i686' 'x86_64') +url="http://libsnl.sourceforge.net/" +license=('GPL2') +provides=('libsnl') +conflicts=('libsnl') +depends=() +makedepends=('subversion') + +source=("$_svnname::svn://svn.code.sf.net/p/$_svnname/code/trunk") +md5sums=('SKIP') + +pkgver() +{ + cd "$srcdir/$_svnname" + local ver="$(svnversion)" + printf "%s" "${ver//[[:alpha:]]}" +} + +prepare() +{ + cd "$srcdir/$_svnname/src" + oldflags="export cflags = -Wall -fPIC -g" + newflags="export cflags = -Wall -fPIC -O2 -g" + sed -i -e "s/$oldflags/$newflags/g" ./makefile +} + +build() +{ + cd "$srcdir/$_svnname/src" + msg "Building..." + export CXXFLAGS="${CXXFLAGS} -O2" + export CFLAGS="${CFLAGS} -O2" + make + msg2 "Build complete." +} + +package() +{ + cd "$srcdir/$_svnname/src" + msg "Copying files..." + install -Dm644 libSNL.so.0.2 $pkgdir/usr/lib/libSNL.so.0.2 + ln -s libSNL.so.0.2 $pkgdir/usr/lib/libSNL.so + install -d $pkgdir/usr/include/libSNL + cp *.h $pkgdir/usr/include/libSNL +}