diff options
author | Vincent Bernardoff | 2015-06-27 09:50:56 +0200 |
---|---|---|
committer | Vincent Bernardoff | 2015-06-27 09:50:56 +0200 |
commit | b67ee5fe3909e1df0d644afb00671dadba6f1876 (patch) | |
tree | 473f262b3e30bb7db40bf7d5f6649e1e8faef96e /PKGBUILD | |
download | aur-b67ee5fe3909e1df0d644afb00671dadba6f1876.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5929cb1766f9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Vincent Bernardoff <vb@luminar.eu.org> + +pkgname=aspcud-svn +groups=('potassco') +pkgver=r8385 +pkgrel=1 +pkgdesc="Solver for package dependencies" +arch=('x86_64' 'i686' 'armv6h' 'armv7h') +url="http://potassco.sourceforge.net/" +license=('GPL3') +depends=('clasp>=2.1.3' 'gringo>=4.2.1') +conflicts=('aspcud') +provides=('aspcud') +makedepends=('boost' 'cmake' 're2c') +source=("$pkgname"::'svn+svn://svn.code.sf.net/p/potassco/code/trunk/aspcud') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + local ver="$(svnversion)" + printf "r%s" "${ver//[[:alpha:]]}" +} + +build() { + cd "$srcdir/$pkgname" + mkdir -p build/release + cd build/release + cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCUDF2LP_LOC=cudf2lp \ + -DGRINGO_LOC=gringo \ + -DCLASP_LOC=clasp \ + -DCMAKE_BUILD_TYPE=Release ../.. + make +} + +package() { + cd "$srcdir/$pkgname" + cd build/release + make DESTDIR=${pkgdir} install +} |