summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3218f0f8628acf62436455e721336b4511459793 (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
# Maintainer: Caleb Woodbine <gitlab.com/BobyMCbobs>
pkgname=getnewip
pkgver=2.2
pkgrel=1
pkgdesc="Sync dynamic public IP addresses of GNU/Linux servers with the hostname in a user's SSH config file, via Dropbox."
arch=('any')
url="https://gitlab.com/BobyMCbobs/${pkgname}"
license=('GPL')
depends=('gnu-netcat' 'curl' 'bash' 'openssh')
source=("https://gitlab.com/BobyMCbobs/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.zip")
md5sums=('c9cabadd60c799c4f2211640f95946e9')

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
}

pre_remove() {
	systemctl disable getnewip
	systemctl stop getnewip
}

post_remove() {
	rm -rf /etc/getnewip

}