diff options
author | pappy | 2018-06-17 17:12:42 +0300 |
---|---|---|
committer | pappy | 2018-06-17 17:12:42 +0300 |
commit | adaf10f4423f408f63cfb70a2fd7098b4f71a48b (patch) | |
tree | 49548ef19d6f7c518ffadf8e99888bdab9878080 | |
parent | 95199a6d597aa1bbad296eb43a863f699c4a6e27 (diff) | |
download | aur-adaf10f4423f408f63cfb70a2fd7098b4f71a48b.tar.gz |
added post-upgrade
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 17 | ||||
-rwxr-xr-x | octoprint.install | 7 | ||||
-rw-r--r-- | octoprint.service | 1 |
4 files changed, 18 insertions, 12 deletions
@@ -1,10 +1,11 @@ pkgbase = octoprint pkgdesc = Responsive web interface for controlling a 3D printer (RepRap, Ultimaker, ...) pkgver = 1.3.8 - pkgrel = 3 + pkgrel = 4 url = http://octoprint.org/ install = octoprint.install arch = x86_64 + arch = armv6h arch = armv7h license = AGPL3 makedepends = python2-virtualenv @@ -21,7 +22,7 @@ pkgbase = octoprint source = octoprint.conf sha256sums = ca1bc5352ef20778722a6b2aedef4c8dbe28d0d82c2526f84f3db07245a01aad sha256sums = bd9b7f989aefb02da1ac414f306861f21f084d886f0283eea11516482b407d65 - sha256sums = 2c0643310be2159feea91eae819d5ab593e6f20b8b6ee6a98d8bf8254125acfb + sha256sums = 231685e84b0241a466766c766f8d3ba31efda3238f19e9adedea380e7b861737 sha256sums = 08e6ff10fb7f61c40e5770b67e8f7201d02d82d3bd46c5441a7f2b0435fbe9c2 sha256sums = 02be5d5a18febe215809882d96f068092c4474abb4e76d82e4450b860a4e9ef5 @@ -9,9 +9,9 @@ _pkgname=OctoPrint pkgname=octoprint # c55c568bbddf5112facf6aa3a173d500936b6cbf pkgver=1.3.8 -pkgrel=3 +pkgrel=4 pkgdesc="Responsive web interface for controlling a 3D printer (RepRap, Ultimaker, ...)" -arch=(x86_64 armv7h) +arch=(x86_64 armv6h armv7h) url="http://octoprint.org/" license=('AGPL3') makedepends=('python2-virtualenv') @@ -30,6 +30,12 @@ source=($pkgname-$pkgver.tar.gz::https://github.com/foosel/$_pkgname/archive/$pk octoprint.conf ) +sha256sums=('ca1bc5352ef20778722a6b2aedef4c8dbe28d0d82c2526f84f3db07245a01aad' + 'bd9b7f989aefb02da1ac414f306861f21f084d886f0283eea11516482b407d65' + '231685e84b0241a466766c766f8d3ba31efda3238f19e9adedea380e7b861737' + '08e6ff10fb7f61c40e5770b67e8f7201d02d82d3bd46c5441a7f2b0435fbe9c2' + '02be5d5a18febe215809882d96f068092c4474abb4e76d82e4450b860a4e9ef5') + package() { virtualenv2 $pkgdir/usr/lib/$pkgname @@ -46,10 +52,3 @@ package() { install -dm750 $pkgdir/var/lib/$pkgname } -sha256sums=('ca1bc5352ef20778722a6b2aedef4c8dbe28d0d82c2526f84f3db07245a01aad' - 'bd9b7f989aefb02da1ac414f306861f21f084d886f0283eea11516482b407d65' - '2c0643310be2159feea91eae819d5ab593e6f20b8b6ee6a98d8bf8254125acfb' - '08e6ff10fb7f61c40e5770b67e8f7201d02d82d3bd46c5441a7f2b0435fbe9c2' - '02be5d5a18febe215809882d96f068092c4474abb4e76d82e4450b860a4e9ef5' - ) - diff --git a/octoprint.install b/octoprint.install index cf974c942367..5c6141411ab3 100755 --- a/octoprint.install +++ b/octoprint.install @@ -3,12 +3,17 @@ post_install() systemd-sysusers mkdir -p /var/lib/octoprint - chown -R octoprint:octoprint /var/lib/octoprint /usr/lib/octoprint + chown -R octoprint:octoprint /var/lib/octoprint echo "To start octoprint, run: systemctl start octoprint" echo "To enable octoprint at boot, run: systemctl enable octoprint" } +post_upgrade() +{ + systemct daemon-reload +} + pre_remove() { systemctl stop octoprint diff --git a/octoprint.service b/octoprint.service index b1b25f0936e5..bef842d32fc2 100644 --- a/octoprint.service +++ b/octoprint.service @@ -10,3 +10,4 @@ ExecStart=/usr/lib/octoprint/bin/octoprint-serve [Install] WantedBy=multi-user.target + |