blob: 6b57eca3258a790436a3400f018d2e5b967640a0 (
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
38
39
|
# Maintainer: Marc Rechté <mrechte@gmail.com>
pkgname=pgagroal
pkgver=1.1.0
pkgrel=1
arch=('x86_64')
pkgdesc="pgagroal is a high-performance protocol-native connection pool for PostgreSQL"
url="https://github.com/agroal/pgagroal"
license=('custom:BSD')
depends=('libev' 'openssl')
makedepends=('gcc' 'cmake' 'make' 'python-docutils')
backup=("etc/pgagroal/pgagroal.conf" "etc/pgagroal/pgagroal_hba.conf")
source=("https://github.com/agroal/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz" )
# "$pkgname-$pkgver.patch")
md5sums=('e9afe6ed398a109c15c7e5bbcf84af79')
install="$pkgname.install"
prepare() {
cd "$pkgname-$pkgver"
# patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
}
build() {
cd "$pkgname-$pkgver"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" ..
make
}
package() {
cd "$pkgname-$pkgver/build"
make install
cd ..
mv "$pkgdir/usr/etc" "$pkgdir/"
install -d "$pkgdir/usr/lib/systemd/system/"
install -m 0644 doc/etc/pgagroal.service "$pkgdir/usr/lib/systemd/system/"
install -m 0644 doc/etc/pgagroal.socket "$pkgdir/usr/lib/systemd/system/"
install -Dm 0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|