blob: fda416d3f04cb40c4de213cef4c7fdac5d0c8425 (
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: Shalygin Konstantin <k0ste@k0ste.ru>
# Co-Maintainer: xiretza <xiretza+aur@xiretza.xyz>
# Contributor: Shalygin Konstantin <k0ste@k0ste.ru>
pkgname='pgbackrest'
pkgver='2.53.1'
pkgrel='1'
pkgdesc='Reliable PostgreSQL Backup & Restore'
arch=('x86_64' 'aarch64')
url="https://github.com/${pkgname}/${pkgname}"
license=('MIT')
depends=('openssl' 'libxml2' 'icu' 'gcc-libs' 'bzip2' 'lz4'
'xz' 'zstd' 'perl' 'postgresql-libs')
makedepends=('meson' 'libyaml')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/release/${pkgver}.tar.gz")
sha256sums=('9a8ea2aec0090896dbeeb0c9979c537f7eeeb7eb33b54dea54cf0df464a3311e')
backup=("etc/${pkgname}/${pkgname}.conf")
prepare() {
arch-meson "${pkgname}-release-${pkgver}" "build"
}
build() {
meson compile -C "build"
}
package() {
meson install -C "build" --destdir "${pkgdir}"
install -Dm0755 -d "${pkgdir}/etc/${pkgname}"
echo "# Placeholder configuration file" > "${pkgdir}/etc/${pkgname}/${pkgname}.conf"
echo "# See the documentation at https://${pkgname}.org/configuration.html" >> \
"${pkgdir}/etc/${pkgname}/${pkgname}.conf"
install -Dm0644 "${pkgname}-release-${pkgver}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|