summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9aa5e7dd2d9119bd518dde492d5c33e12e34b90d (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
# Maintainer: Caleb Woodbine <gitlab.com/BobyMCbobs>
pkgname=uploadnewip
pkgver=2.2.1
pkgrel=1
pkgdesc="Upload new dynamic public IP address of a GNU/Linux server to Dropbox every time it changes."
arch=('any')
url="https://gitlab.com/BobyMCbobs/${pkgname}"
license=('GPL')
depends=('curl' 'bash' 'nano' 'iputils')
source=("https://gitlab.com/BobyMCbobs/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.zip")
md5sums=('f00265468b323a417ca3766c07f9ff3b')

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

pre_remove() {
	systemctl disable uploadnewip
	systemctl stop uploadnewip
}

post_remove() {
	rm -rf /etc/uploadnewip
	rm -rf /var/cache/uploadnewip

}