summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLorenzo Fontana2018-04-02 22:32:05 +0200
committerLorenzo Fontana2018-04-02 22:32:05 +0200
commit64aac94f5d09b5a2ac95b9b7dbeeb0a0b55df9d8 (patch)
treee7d4fbae75e3955a6a6a189650b30f1b4a3ce285 /PKGBUILD
parent4d2416dbe6e7f9ee96fea1f201311433bc4f2683 (diff)
downloadaur-64aac94f5d09b5a2ac95b9b7dbeeb0a0b55df9d8.tar.gz
Update: v1.1.1 build from source released tarball
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 25 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ef0c144ff08..8f6616f5671 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,30 @@
+# Maintainer: Lorenzo Fontana <lo@linux.com>
pkgname=coredns
-pkgver=007
+pkgver=v1.1.1
pkgrel=1
-pkgdesc='CoreDNS is a DNS server that chains middleware'
-url='https://github.com/coredns/coredns'
-arch=(x86_64)
-depends=()
-makedepends=()
-optdepends=()
-backup=()
-source=("https://github.com/coredns/coredns/releases/download/v${pkgver}/coredns_${pkgver}_linux_x86_64.tgz")
-md5sums=('f687dab79c8c4451fbb36873895a50da')
+pkgdesc="CoreDNS is a DNS server that chains plugins"
+makedepends=('go' 'make')
+conflicts=('coredns-bin')
+arch=('i686' 'x86_64')
+url="https://github.com/coredns/coredns"
+license=('Apache')
+provides=('coredns')
+source=(coredns::https://github.com/coredns/${pkgname}/archive/${pkgver}.tar.gz
+https://raw.githubusercontent.com/coredns/deployment/5bb111266eca2d47802e0d1a26bc55491ff2cec3/systemd/coredns.service
+coredns-sysusers.conf)
+
+sha256sums=('608c883ee00c856f97197f7629c999fbcc0db932120a31654131f26df7b64053'
+'be3eb5ce8740b17053aaf04ca036a4d34e0b86d0737253be7094cda16a329cf5'
+'178c632fd855a5a35ae69e13ab554d5abad696cf75d23c6b6b37f0ace3b4b0f2')
+
+build() {
+ cd "$pkgname-${pkgver//v/}"
+ make
+}
package() {
- install -Dm755 coredns "$pkgdir"/usr/bin/coredns
+ install -Dm755 "$srcdir/coredns-${pkgver//v/}/coredns" "$pkgdir/usr/bin/coredns"
+ install -Dm644 "$srcdir/coredns.service" "$pkgdir/usr/lib/systemd/system/coredns.service"
+ install -Dm644 "$srcdir/coredns-sysusers.conf" "$pkgdir/usr/lib/sysusers.d/coredns.conf"
+ install -d "${pkgdir}/etc/coredns"
}