summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d14ac208a31c4ef78cb086a5bd4f55f894dd1627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=gitlab-upgrade-hook
pkgver=1
pkgrel=3
pkgdesc='Automatically shut down, run db:migrate, then start services after upgrade'
arch=('any')
depends=('pacman-contrib' 'gitlab')
source=('gitlab-pre.hook'
        'gitlab-post.hook'
        'gitlab-post.sh')
sha256sums=('6996bb8e24142a050642dfe932907d1d4e6af74ecea392706d9407863458470e'
            'aa5f9a9f4af3b190e2ca52ffc567c3a35374877e5e8d39a34dcdb753cde22c7e'
            '3b05e6d3ddbc76715f13e8c11a63969c85ae04066b314fab49ed626ac7a90265')

package() {
    local _libalpm="$pkgdir/usr/share/libalpm"
    install -Dm0644 -t "$_libalpm/hooks/" gitlab-{pre,post}.hook
    install -Dm0755 -t "$_libalpm/scripts/" gitlab-post.sh
}