packages/PKGBUILD

48 lines
1.8 KiB
Bash
Raw Normal View History

2018-06-19 19:29:37 +00:00
# Maintainer: Jean Lucas <jean@4ray.co>
2017-04-07 09:36:31 +00:00
pkgname=mastodon
2018-08-27 17:15:18 +00:00
pkgver=2.4.5
pkgrel=1
2018-08-27 17:15:18 +00:00
pkgdesc='Free software social-network server based on ActivityPub and OStatus'
2018-06-19 19:29:37 +00:00
arch=(i686 x86_64)
url=https://joinmastodon.org
license=(AGPL3)
2018-06-27 01:07:24 +00:00
depends=(ffmpeg
imagemagick
libpqxx
libxml2
libxslt
nodejs-lts-boron
postgresql
redis
ruby-bundler
protobuf)
makedepends=(yarn python2)
2018-06-19 19:29:37 +00:00
conflicts=(mastodon-git)
backup=(etc/mastodon/environment)
2017-04-11 13:51:26 +00:00
install=mastodon.install
source=(https://github.com/tootsuite/mastodon/archive/v$pkgver.tar.gz
2018-06-19 19:29:37 +00:00
mastodon-web.service
mastodon-sidekiq.service
mastodon-streaming.service
mastodon.target)
2018-08-27 17:15:18 +00:00
sha512sums=('78933a9e81baf43bbf9ef631e31a553ae34706f9af1d64fdc7a7d812225937bd615c286b1af53f7f747f3e9fc75f7834bef5d465b254dff2f1dfd0911ed16403'
'532929aeeda9a0ccf72de0695a3381547cc389344e1e67f05ef1d7ce5c1ad57278b647423bb52d4a87069ad85479452533fbe3786e5e5c4b62730c6ef72ff267'
'603a7877288c762855a29fd2399d3ff7d218a7f1b7d6378cad7f30048cdbfe2a13f2ed2b5c94cb683bdcaead8cd47243e564a2ae70d7f21fa33f295c5396f4f7'
'90a0761b7709659bec6f29c366c503fdd348226cbb585cf4f6eaa065854e2027d08ab3b352eb13ad7c0e327d662f13bc00fb4163ea0c583ef55b1795ab2e0b31'
'c9820c2a83d08bd5d842a78e924682db97ebd5c7291b682603ad30dafcdcc5816c13e717ad39554f042b9d9ed71ab902ce3f604952264a900a72612ee8060acb')
2018-06-19 19:29:37 +00:00
build() {
cd mastodon-$pkgver
2018-06-19 19:29:37 +00:00
bundle install --deployment --without development test
yarn install --pure-lockfile
}
package() {
install -d "$pkgdir"{/var/lib,/etc/mastodon}
cp -a mastodon-$pkgver "$pkgdir"/var/lib/mastodon
ln -s /etc/mastodon/environment "$pkgdir"/var/lib/mastodon/.env
touch "$pkgdir"/etc/mastodon/environment
install -Dm 644 -t "$pkgdir"/usr/lib/systemd/system mastodon-{web,sidekiq,streaming}.service mastodon.target
2018-06-19 19:29:37 +00:00
}