2016-11-06 00:52:55 -04:00
|
|
|
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
|
|
|
|
|
|
|
_pkgname=litesql
|
|
|
|
pkgname="$_pkgname-git"
|
2016-11-28 17:29:12 -05:00
|
|
|
pkgver=r596.d13e3d2
|
2016-11-06 00:52:55 -04:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="C++ ORM for SQLite3, PostgreSQL, MySQL and Oracle"
|
|
|
|
arch=('i686' 'x86_64' 'armv7h')
|
|
|
|
url="https://dev.louiz.org/projects/litesql"
|
|
|
|
license=('BSD3')
|
|
|
|
#depends=('expat' 'libmariadbclient' 'postgresql-libs' 'sqlite')
|
|
|
|
depends=('expat' 'sqlite')
|
|
|
|
makedepends=('git' 'cmake')
|
|
|
|
provides=("$_pkgname")
|
|
|
|
conflicts=("$_pkgname")
|
|
|
|
source=("$_pkgname::git://git.louiz.org/litesql")
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/$_pkgname"
|
|
|
|
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/$_pkgname"
|
|
|
|
mkdir -p build
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$_pkgname/build"
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$srcdir/$_pkgname/build"
|
|
|
|
make test
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_pkgname/build"
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
|
|
|
|
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|