blob: 3de8786869c27826ffbf2b2c0d8818e0171fe580 (
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
37
|
# Maintainer: Marc Rechté <mrechte@gmail.com>
pkgname=odyssey
pkgver=git
pkgrel=1
arch=('x86_64')
pkgdesc="Advanced multi-threaded PostgreSQL connection pooler and request router"
url="https://github.com/yandex/odyssey"
license=('custom:BSD')
depends=('openssl')
makedepends=('gcc' 'cmake' 'make' 'postgresql')
backup=('etc/odyssey/odyssey.conf')
source=("git+https://github.com/yandex/$pkgname.git"
odyssey.conf
tmpfile_odyssey.conf)
md5sums=('SKIP'
'SKIP'
'SKIP')
install="$pkgname.install"
prepare() {
cd "$pkgname"
}
build() {
cd "$pkgname"
make local_build
}
package() {
install -Dm 0640 odyssey.conf "$pkgdir/etc/odyssey/odyssey.conf"
install -Dm 0644 tmpfile_odyssey.conf "$pkgdir/etc/tmpfiles.d/odyssey.conf"
cd "$pkgname"
install -Dm 0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm 0755 "build/sources/odyssey" "$pkgdir/usr/bin/odyssey"
install -Dm 0755 scripts/systemd/odyssey.service "$pkgdir/usr/lib/systemd/system/odyssey.service"
}
|