blob: 2a5f5cfc5c2824d8d5de3d0060d6d8ec7edf4b74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Yunhui Fu <yhfudev@gmail.com>
pkgname=lazylpsolverlibs-git
pkgver=7d32dc6
pkgrel=1
pkgdesc="lazylpsolverlibs provides libraries that can replace at link time those of commercial lp solvers."
arch=(i686 x86_64 arm)
url="https://github.com/chmduquesne/lazylpsolverlibs.git"
license=(GPL)
depends=(glib2)
makedepends=(gcc)
source=("${pkgname}::git+https://github.com/chmduquesne/lazylpsolverlibs.git")
sha1sums=(SKIP)
conflicts=(lazylpsolverlibs)
pkgver() {
cd "${srcdir}/${pkgname}"
local ver="$(git show | grep commit | awk '{print $2}' )"
#printf "r%s" "${ver//[[:alpha:]]}"
echo ${ver:0:7}
}
build() {
cd "${srcdir}/${pkgname}"
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --disable-static
make
}
package() {
cd "${srcdir}/${pkgname}"
make DESTDIR="$pkgdir" install
}
|