summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornroi2016-12-27 22:43:40 +0100
committernroi2016-12-27 22:43:40 +0100
commitde44ef6b2e94a248d32d458bed1de592a71dc954 (patch)
tree1374a27d254695f3d357273397d04b2ceee5999b
parent53b2b3b367a20c7677204405d9ed116450a4f9a6 (diff)
downloadaur-de44ef6b2e94a248d32d458bed1de592a71dc954.tar.gz
Adapt PKGBUILD to changes from upstream
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD13
2 files changed, 9 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index faac7e736b3..7645884ebdf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,17 @@
pkgbase = cpcache-git
pkgdesc = central pacman cache
- pkgver = r66.80cd2f4
+ pkgver = r87.874cf45
pkgrel = 1
url = https://github.com/nroi/cpcache
install = cpcache.install
arch = i686
arch = x86_64
- arch = arm
- arch = armv6h
arch = armv7h
arch = aarch64
license = MIT
makedepends = erlang-nox
makedepends = elixir
- depends = inotify-tools
+ depends = waitforfile
backup = etc/cpcache.yaml
source = git+https://github.com/nroi/cpcache.git
source = sysuser.conf
diff --git a/PKGBUILD b/PKGBUILD
index 3e54909e324..cd2049ca52b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: nroi <nroi@mailbox.org>
pkgname=cpcache-git
-pkgver=r66.80cd2f4
+pkgver=r87.874cf45
pkgrel=1
pkgdesc="central pacman cache"
-arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
+arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url='https://github.com/nroi/cpcache'
license=('MIT')
makedepends=('erlang-nox' 'elixir')
-depends=('inotify-tools')
+depends=('waitforfile')
install="${pkgname%-git}.install"
backup=('etc/cpcache.yaml')
source=('git+https://github.com/nroi/cpcache.git'
@@ -31,10 +31,11 @@ package() {
/usr/bin/mix deps.get
/usr/bin/mix release.init
MIX_ENV=prod /usr/bin/mix release --env=prod
- mkdir -p "${pkgdir}/usr/share/"
+ mkdir -p "${pkgdir}/usr/share/${pkgname%-git}"
mkdir -p "${pkgdir}/var/lib/${pkgname%-git}"
- ln -s "/var/lib/${pkgname%-git}" "${srcdir}/${pkgname%-git}/rel/${pkgname%-git}/var"
- cp -r rel/cpcache "${pkgdir}/usr/share/"
+ cd "${pkgdir}/usr/share/${pkgname%-git}"
+ tar xf "${srcdir}/${pkgname%-git}/rel/${pkgname%-git}/releases/0.1.0/${pkgname%-git}.tar.gz"
+ ln -s "/var/lib/${pkgname%-git}" var
install -Dm644 "${srcdir}/cpcache.service" "${pkgdir}/usr/lib/systemd/system/cpcache.service"
install -Dm644 "${srcdir}/sysuser.conf" "${pkgdir}/usr/lib/sysusers.d/cpcache.conf"
install -Dm644 "${srcdir}/cpcache/conf/cpcache.yaml" "${pkgdir}/etc/cpcache.yaml"