From florian, 3 Years ago, written in Plain Text.
This paste will shuffle off the mortal coil in 1 Second.
Embed
  1. # Maintainer: Bjonnh <bjonnh-arch@bjonnh.net>
  2. # Based on the tt-rss PKGBUILD
  3. # Contributor:  Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
  4. # Contributor: Clément Démoulins <clement@archivel.fr>
  5. # Contributor: David Rosenstrauch <darose@darose.net>
  6. # Contributor: Erik Mank <erik@braindisorder.org>
  7. # Contributor: Florian Bruhin <archlinux.org@the-compiler.org>
  8.  
  9. pkgname=tt-rss-git
  10. pkgver=r7938.9232283
  11. pkgrel=1
  12. pkgdesc='Web-based news feed (RSS/Atom) aggregator (Git version)'
  13. arch=('any')
  14. url='http://tt-rss.org/redmine/'
  15. license=('GPL')
  16. depends=('php')
  17. makeodepends=('git')
  18. conflicts=('tt-rss')
  19. provide=('tt-rss')
  20. optdepends=('mysql' 'postgresql' 'php-curl')
  21. install=tt-rss.install
  22. source=('git+https://tt-rss.org/gitlab/fox/tt-rss.git'
  23.         service)
  24. sha256sums=('SKIP'
  25.             '8c33ab29cdb2eda25724e738ed04cb472a7fec0a9edca45729f29b17c46e55df')
  26. options=(!strip)
  27.  
  28. pkgver() {
  29.   cd "$srcdir/tt-rss"
  30.   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  31. }
  32.  
  33. package() {
  34.   cd tt-rss
  35.   _instdir="$pkgdir"/usr/share/webapps/tt-rss
  36.  
  37.   install -d "$_instdir"
  38.   cp -ra * "$_instdir/"
  39.  
  40.   install -Dm640 -g http config.php-dist "$pkgdir"/etc/webapps/tt-rss/config.php
  41.   ln -s /etc/webapps/tt-rss/config.php "$_instdir"/config.php
  42.  
  43.   install -d "$pkgdir"/var/lib/tt-rss
  44.   mv "$_instdir"/{lock,feed-icons,cache} "$pkgdir"/var/lib/tt-rss
  45.   ln -s /var/lib/tt-rss/lock "$_instdir"/lock
  46.   ln -s /var/lib/tt-rss/feed-icons "$_instdir"/feed-icons
  47.   ln -s /var/lib/tt-rss/cache "$_instdir"/cache
  48.   chown -R 33:33 "$pkgdir"/var/lib/tt-rss
  49.   chmod -R 777 "$pkgdir"/var/lib/tt-rss/*
  50.  
  51.   install -Dm644 "$srcdir"/service "$pkgdir"/usr/lib/systemd/system/tt-rss.service
  52. }
  53.