Commit eb481902 authored by Anil Madhavapeddy's avatar Anil Madhavapeddy Committed by Natanael Copa

testing/aspcud: new aport

parent c007998b
# Contributor: Anil Madhavapeddy <anil@recoil.org>
# Maintainer: Anil Madhavapeddy <anil@recoil.org>
pkgname=aspcud
pkgver=1.9.1
pkgrel=0
pkgdesc="Package dependency solver"
url="http://potassco.sourceforge.net/"
arch="all"
license="LGPL3"
depends="boost gringo clasp"
makedepends="boost-dev cmake re2c"
install=""
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/project/potassco/aspcud/${pkgver}/aspcud-${pkgver}-source.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver-source
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
mkdir build
cd build
cmake .. -DGRINGO_LOC=/usr/bin/gringo -DCLASP_LOC=/usr/bin/clasp -DCMAKE_INSTALL_PREFIX=/usr || return 1
make
}
package() {
cd "${_builddir}/build"
make DESTDIR="${pkgdir}" install
}
md5sums="35304fecd1f832c74f028c06067db39d aspcud-1.9.1-source.tar.gz"
sha256sums="e0e917a9a6c5ff080a411ff25d1174e0d4118bb6759c3fe976e2e3cca15e5827 aspcud-1.9.1-source.tar.gz"
sha512sums="61519b19b8f3080079dcfcfa32e28dbd1ed29de0012ac9753f8be2c08a087a2f1a6778a6ec2bdc208ddfec5f1a07cef339b4358e51f1714129c9d219989837af aspcud-1.9.1-source.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment