blob: bb5c74f3213fdbed4697d1bc25370af8ad5d66f7 (
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
34
35
36
|
# Maintainer: Marco44 (Marc Cousin) <cousinmarc at gmail dot com>
pkgname=hypopg-git
_gitname=hypopg
pkgver=1.1.4.r10.g1196869
pkgrel=1
pkgdesc="Hypothetical indexes for PostgreSQL... ask the optimizer if this hypothetical index would help"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/HypoPG/hypopg"
license=('BSD')
depends=('postgresql')
builddepends=()
makedepends=(git)
provides=(hypopg)
conflicts=(hypopg)
options=(!emptydirs !libtool)
source=('git+https://github.com/HypoPG/hypopg.git')
md5sums=('SKIP')
install='hypopg-git.install'
pkgver() {
cd $_gitname
git describe --long --tags | sed 's/REL//;s/_/./g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
local _gitdir=$srcdir/$_gitname
cd $_gitdir
git clean -dfx
git reset --hard
make
}
package() {
cd $srcdir/$_gitname
make DESTDIR=$pkgdir install
}
|