diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -2,7 +2,7 @@ pkgname=or-tools pkgver=6.10 -pkgrel=1 +pkgrel=2 pkgdesc="Google's Operations Research tools." arch=('x86_64') url="https://github.com/google/or-tools" @@ -13,7 +13,7 @@ source=("https://github.com/google/or-tools/archive/v${pkgver}.tar.gz") sha256sums=('d1131ca6d7c2388400493c774dfd0b5d5c270a8a9645391876400a194354cfd6') conflicts=('python-or-tools') # because it copies libortools.so to usr/lib -build() { +prepare() { cd "$pkgname-$pkgver" cmake -H. -Bbuild \ -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \ @@ -22,8 +22,11 @@ build() { -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_PYTHON=OFF \ + -DBUILD_PYTHON=OFF +} +build() { + cd "$pkgname-$pkgver" cmake --build build } |