summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-08-28 11:13:32 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-08-28 11:13:32 +0200
commit0cc6a0720f9505aaacfc247fa646d3e888f8e4aa (patch)
tree65312a00db8134471b6b4d8f32c36cf479effdbe /pcr
parent0c5c6934b681707ec1a459da4318aabd7f9b796f (diff)
parent559da5e6e5aff9ccc57e29b6a91c35a528424b6c (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community-staging/widelands/PKGBUILD community/bird/PKGBUILD community/hwinfo/PKGBUILD community/pdnsd/PKGBUILD community/spectrwm/PKGBUILD community/xmlrpc-c/PKGBUILD core/wireless_tools/PKGBUILD extra/proftpd/PKGBUILD libre/grub/PKGBUILD multilib-testing/lib32-libdrm/PKGBUILD multilib-testing/lib32-libdrm/no-pthread-stubs.patch multilib/lib32-gdk-pixbuf2/PKGBUILD testing/pkg-config/PKGBUILD testing/systemd/PKGBUILD testing/systemd/systemd.install
Diffstat (limited to 'pcr')
-rw-r--r--pcr/chiliproject/PKGBUILD41
-rw-r--r--pcr/chiliproject/chiliproject.install17
-rw-r--r--pcr/ruby-bundler/PKGBUILD22
3 files changed, 80 insertions, 0 deletions
diff --git a/pcr/chiliproject/PKGBUILD b/pcr/chiliproject/PKGBUILD
new file mode 100644
index 000000000..4f933934a
--- /dev/null
+++ b/pcr/chiliproject/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+
+pkgname=chiliproject
+pkgver=3.3.0
+pkgrel=1
+pkgdesc="Chiliproject is a fork of Redmine, a flexible project management web application written using Ruby on Rails."
+arch=('any')
+url="https://www.chiliproject.org"
+license=('GPL2')
+depends=('ruby' 'ruby-bundler' 'mysql' 'libxml2' 'libxslt' 'imagemagick' 'pkg-config')
+provides=('chiliproject')
+backup=('var/lib/chiliproject/config/database.yml'
+ 'var/lib/chiliproject/config/configuration.yml')
+makedepends=('glibc')
+optdepends=('git: Git repository browsing'
+ 'subversion>=1.3.0: Subversion repository browsing'
+ 'darcs: Darcs repository browsing'
+ 'bzr: Bazaar repository browsing'
+ 'mercurial: Mercurial repository browsing')
+options=()
+install=chiliproject.install
+source=("https://www.chiliproject.org/attachments/download/360/chiliproject-$pkgver.tar.gz")
+md5sums=('4fa4a825cf0cd91d7495180a19bc4c11')
+
+build() {
+ return 0
+}
+
+package() {
+ cd "$srcdir/chiliproject-$pkgver"
+
+ # install in /var/lib
+ _instdir="$pkgdir/var/lib/chiliproject"
+ mkdir -p ${_instdir}
+ cp -ra . ${_instdir}
+
+ # create required directories
+ mkdir -p "${_instdir}/public/plugin_assets"
+}
+
+# vim:set ts=4 sw=4 et:
diff --git a/pcr/chiliproject/chiliproject.install b/pcr/chiliproject/chiliproject.install
new file mode 100644
index 000000000..cb4622f09
--- /dev/null
+++ b/pcr/chiliproject/chiliproject.install
@@ -0,0 +1,17 @@
+adjust_perms(){
+ chown -R http:http "/var/lib/chiliproject" 1>/dev/null
+ for dir in /var/lib/chiliproject/{files,log,tmp,public/plugin_assets}; do
+ chown -R http:http "$dir" 1>/dev/null
+ chmod -R 755 "$dir" 1>/dev/null
+ done
+}
+
+post_install() {
+ adjust_perms
+ echo 'take a look at https://wiki.archlinux.org/index.php?title=Chiliproject for further setup instructions.'
+}
+
+post_upgrade() {
+ adjust_perms
+ echo 'take a look at https://wiki.archlinux.org/index.php?title=Chiliproject for further setup instructions.'
+}
diff --git a/pcr/ruby-bundler/PKGBUILD b/pcr/ruby-bundler/PKGBUILD
new file mode 100644
index 000000000..a1fb32449
--- /dev/null
+++ b/pcr/ruby-bundler/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
+
+pkgname=ruby-bundler
+_gemname=${pkgname#ruby-}
+pkgver=1.1.5
+pkgrel=1
+pkgdesc="Is manages an application's dependencies through its entire life, across many machines, systematically and repeatably."
+arch=('any')
+url="http://gembundler.com"
+license=('MIT')
+depends=('ruby' 'rubygems')
+source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+md5sums=('ecced17bc29a761db4ea5ca57b0d8795')
+
+build() {
+ cd "${srcdir}"
+ export HOME=/tmp
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ gem install --no-user-install --ignore-dependencies -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+}