blob: 1ba3534aea16ebccdc03b2eb1b834276b877f402 (
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
30
31
32
33
34
35
36
|
# Maintainer: atom.long <atom.long@hotmail.com>
pkgname=freenom-script
pkgver=20230226
pkgrel=1
pkgdesc="Freenom.com Domain Renewal and Dynamic DNS script."
arch=('any')
url="https://github.com/mkorthof/freenom-script"
license=('GPL3')
depends=('curl')
optdepends=('iputils: support custom domain email address')
source=("${pkgname}::git+${url}.git"
0001-Makefile-Support-staged-installs-with-DESTDIR.patch
0002-send-mail-via-curl-command.patch)
md5sums=('SKIP'
'1bcaf7df11f92cdcb4f39499e3ec824a'
'cb5b77eba766c5a36ede21abba6db514')
install=freenom-script.install
pkgver() {
cd "${srcdir}/${pkgname}"
git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}
prepare() {
cd "${srcdir}/${pkgname}"
git apply ${srcdir}/0001-Makefile-Support-staged-installs-with-DESTDIR.patch
git apply ${srcdir}/0002-send-mail-via-curl-command.patch
}
package() {
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" install
}
# vim:set ts=2 sw=2 et:
|