summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56fc31ce7a83c79e9c2eb0eb6b29d04f33872965 (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
# Maintainer: graysky <therealgraysky AT protonmail DOT com>

pkgname=lxc-service-snapshots
pkgver=2.18
pkgrel=1
pkgdesc='Run disposable (read-only then delete) Linux containers (LXC) to serve up OpenVPN, Pi-Hole, or WireGuard.'
arch=(any)
url='https://github.com/graysky2/lxc-service-snapshots'
license=(MIT)
depends=(systemd 'lxc>=1:4.0.0')
source=("$pkgname-$pkgver.tar.gz::https://github.com/graysky2/$pkgname/archive/v$pkgver.tar.gz")
backup=(
   etc/conf.d/openvpn-lss.conf
   etc/conf.d/pihole-lss.conf
   etc/conf.d/wireguard-lss.conf
)
sha256sums=('a24032354a710e3586d70b743e990873c487b2f6ceec050a74f832e1f4f261ad')

build() {
  cd "$pkgname-$pkgver"
  make
}

package() {
  cd "$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}