summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aed1376735be8480a11bb877425937c94e1d6352 (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
# Maintainer: database64128 <free122448@hotmail.com>

pkgname=ddns-cloudflare-powershell-git
pkgver=r13.2757b76
pkgrel=1
pkgdesc="A simple Powershell script for DDNS with Cloudflare API"
arch=(x86_64)
url="https://github.com/database64128/ddns-cloudflare-powershell"
license=('GPL3')
depends=('powershell')
makedepends=('git')
provides=("ddns-cloudflare-powershell")
conflicts=("ddns-cloudflare-powershell")
backup=('etc/ddns-cloudflare-powershell/settings.jsonc')
source=("$pkgname::git+$url.git")
b2sums=('SKIP')

pkgver() {
    cd $pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd $pkgname
    install -Dm755 ddns-cloudflare.ps1 $pkgdir/usr/bin/ddns-cloudflare-powershell
    install -Dm644 systemd/ddns-cloudflare-powershell.service $pkgdir/usr/lib/systemd/system/ddns-cloudflare-powershell.service
    install -d $pkgdir/etc/ddns-cloudflare-powershell
    install -Dm600 settings.example.jsonc $pkgdir/etc/ddns-cloudflare-powershell/settings.jsonc
}