summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Poulin2015-10-28 18:10:57 -0400
committerMaxime Poulin2015-10-28 18:10:57 -0400
commit0a906f061bc7b78f443b4917e7dae1335b917b7a (patch)
treebb6848129279231b787af066a5309f09db523203
parentb242c7c54e2e61ae55dc24b0e07f729b733cbf88 (diff)
downloadaur-0a906f061bc7b78f443b4917e7dae1335b917b7a.tar.gz
Update to 0.52.0 & clean up PKGBUILD
-rw-r--r--PKGBUILD53
1 files changed, 28 insertions, 25 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b9c31dcada1..4409d17259b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,7 @@
# Maintainer: Maxime Poulin <maxpoulin64@gmail.com>
# Contributor: Duncan K. <duncank@fastmail.fm>
pkgname=shout-irc
-_upstreamname=shout
-pkgver=0.51.2
+pkgver=0.52.0
pkgrel=1
pkgdesc="Web-based IRC client"
url='http://shout-irc.com/'
@@ -10,32 +9,36 @@ arch=('any')
license=('MIT')
depends=('nodejs')
install=install
-source=("https://github.com/erming/${_upstreamname}/archive/${pkgver}.tar.gz"
- "system.service"
- "user.service")
-sha256sums=('63ac098ed1a6d2a731369b2b9e08fe9e372aa0e1d64cf23f734cca5605b11ba2'
- 'beac3a8a25700997f0f2a154ee85e8c89d64082856d194434b01116a0f4edb91'
- '322d152da59c066617dbab9604099bf25ca2b175ae6bd508643b38344be043d8'
+backup=('etc/shout-irc/config.js')
+source=(
+ "https://github.com/erming/shout/archive/v${pkgver}.tar.gz"
+ "system.service"
+ "user.service"
+)
+sha256sums=(
+ '7ccbce524fe5c6e71ac06e7eea399358044fc8a5b94eff330874343234e29fdf'
+ 'SKIP'
+ 'SKIP'
)
-prepare() {
- cd ${srcdir}/${_upstreamname}-${pkgver}
- npm install
+build() {
+ cd "$srcdir/shout-$pkgver"
+ npm install
}
package() {
- _share=$pkgdir/usr/share/$pkgname
- _etc=$pkgdir/etc/$pkgname
-
- cd ${srcdir}/${_upstreamname}-${pkgver}
-
- install -dm755 $pkgdir/usr/bin
- install -dm755 $_share
- install -dm700 $_etc $_etc/users
- install -Dm600 defaults/config.js $_etc/config-dist.js
- cp -RT . $_share
- ln -s /usr/share/$pkgname/index.js $pkgdir/usr/bin/$pkgname
-
- install -Dm644 $srcdir/system.service $pkgdir/usr/lib/systemd/system/${pkgname}.service
- install -Dm644 $srcdir/user.service $pkgdir/usr/lib/systemd/user/${pkgname}.service
+ _share="$pkgdir/usr/share/$pkgname"
+ _etc="$pkgdir/etc/$pkgname"
+
+ cd "$srcdir/shout-$pkgver"
+
+ install -dm755 "$pkgdir/usr/bin"
+ install -dm755 "$_share"
+ install -dm700 "$_etc" "$_etc/users"
+ install -Dm600 "defaults/config.js" "$_etc/config.js"
+ cp -RT . "$_share"
+ ln -s /usr/share/$pkgname/index.js $pkgdir/usr/bin/$pkgname
+
+ install -Dm644 $srcdir/system.service $pkgdir/usr/lib/systemd/system/${pkgname}.service
+ install -Dm644 $srcdir/user.service $pkgdir/usr/lib/systemd/user/${pkgname}.service
}