Compare commits
9 commits
1fcde753f9
...
3c90b1742f
Author | SHA1 | Date | |
---|---|---|---|
George Rawlinson | 3c90b1742f | ||
George Rawlinson | 5dd2a10349 | ||
George Rawlinson | 35d9e88e4f | ||
George Rawlinson | d4d029c3f6 | ||
George Rawlinson | 3782d93ae2 | ||
George Rawlinson | 661432c3ee | ||
George Rawlinson | 1681cf04a4 | ||
George Rawlinson | f9c9588629 | ||
George Rawlinson | 53166f0790 |
|
@ -729,6 +729,10 @@ cmd = "./.repo/pkgver/html-xml-utils.sh"
|
|||
source = "cmd"
|
||||
cmd = "./.repo/pkgver/sendmail.sh"
|
||||
|
||||
[time]
|
||||
source = "cmd"
|
||||
cmd = "./.repo/pkgver/time.sh"
|
||||
|
||||
# git
|
||||
#[plasma-pass-git]
|
||||
#source = "git"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/bash
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# check dependencies
|
||||
|
|
34
.repo/pkgver/time.sh
Executable file
34
.repo/pkgver/time.sh
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/bash
|
||||
set -e
|
||||
|
||||
# check dependencies
|
||||
count=0
|
||||
for dependency in curl tr cut grep sed sort tail; do
|
||||
if [ ! -x "$(command -v $dependency)" ]; then
|
||||
echo "$dependency missing"
|
||||
count=$((count+1))
|
||||
fi
|
||||
done
|
||||
|
||||
# exit script if any dependencies missing
|
||||
if [ $count -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# upstream URL
|
||||
UPSTREAM_URL="ftp://ftp.gnu.org/gnu/time/"
|
||||
|
||||
# options to pass to cURL, including custom user agent
|
||||
USER_AGENT="time-version-checker/1.0 george@rawlinson.net.nz"
|
||||
CURL_OPTS=(--ftp-pasv --silent --user-agent "$USER_AGENT")
|
||||
|
||||
curl "${CURL_OPTS[@]}" "$UPSTREAM_URL" \
|
||||
| tr -s ' ' \
|
||||
| cut -d ' ' -f 9 \
|
||||
| grep ".tar.gz$" \
|
||||
| sort -n \
|
||||
| tail -n 1 \
|
||||
| sed -e "s/^time-//" -e "s/.tar.gz$//"
|
||||
|
||||
exit 0
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit b3a82174fc8c996acb38961077f3525aa4a51078
|
||||
Subproject commit 84e2902b31cc9b34f8be7038c3dfaa7421932e86
|
|
@ -1 +1 @@
|
|||
Subproject commit 946fb1b4095071e72a59954796045ed7bc63ee07
|
||||
Subproject commit 76df471d4e72a5dbdd039ce1fbcb3b2905ea7b47
|
|
@ -1 +1 @@
|
|||
Subproject commit 282a2164f7dc81d30e26d4d53cb6e5e0722273f7
|
||||
Subproject commit 0d99f5a4f5cbb583d7c8357b70623669c0bb8896
|
|
@ -1 +1 @@
|
|||
Subproject commit 180bbe45e2434af0d6f63a7655edd234e3086c40
|
||||
Subproject commit b567b7f4e83fb540014fe1afded026f9c9d8945d
|
|
@ -2,40 +2,45 @@
|
|||
|
||||
_gemname=oj
|
||||
pkgname=ruby-$_gemname
|
||||
pkgver=3.12.3
|
||||
pkgver=3.13.1
|
||||
pkgrel=1
|
||||
pkgdesc='The fastest JSON parser and object serializer'
|
||||
arch=('x86_64')
|
||||
url='https://github.com/ohler55/oj'
|
||||
license=('MIT')
|
||||
depends=('ruby')
|
||||
makedepends=('ruby-rdoc')
|
||||
options=(!emptydirs)
|
||||
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
|
||||
noextract=("$_gemname-$pkgver.gem")
|
||||
b2sums=('5c835fa1f3fc1583b32ea744c8a3bb68e085f97cd4720aa150a55b8688cc9c9703614f292a33689ac90035c45644b648d470767e846e4ab559d4fa289f1cadd0')
|
||||
b2sums=('a77d194ab66a93abb6a9606c4b1697e4382dd1d7f4d1f59dedb370971c760feba221d6d881ce933632d98f63696695ae290f0709e78b36459c1c8cbf43b74242')
|
||||
|
||||
package() {
|
||||
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
||||
|
||||
gem install \
|
||||
--verbose \
|
||||
--ignore-dependencies \
|
||||
--no-user-install \
|
||||
--no-document \
|
||||
--install-dir "$pkgdir/$_gemdir" \
|
||||
--bindir "$pkgdir/usr/bin" \
|
||||
"$_gemname-$pkgver.gem"
|
||||
|
||||
# delete cache
|
||||
cd "$pkgdir/$_gemdir"
|
||||
rm -rf cache
|
||||
rm -vrf cache
|
||||
|
||||
# delete unnecessary files & folders
|
||||
# TODO: investigate gem.build_complete (gem_build_complete_path)
|
||||
rm -vrf "extensions/$(uname -m)-linux/$(basename $(ruby -e'puts Gem.default_dir'))/$_gemname-$pkgver/gem_make.out"
|
||||
cd "gems/$_gemname-$pkgver"
|
||||
# delete unnecessary folders
|
||||
rm -rf test ext
|
||||
rm -vrf test ext
|
||||
|
||||
# move documentation
|
||||
install -vd "$pkgdir/usr/share/doc/$pkgname"
|
||||
mv README.md pages "$pkgdir/usr/share/doc/$pkgname"
|
||||
mv -v README.md pages "$pkgdir/usr/share/doc/$pkgname"
|
||||
|
||||
# license
|
||||
install -vd "$pkgdir/usr/share/licenses/$pkgname"
|
||||
mv LICENSE "$pkgdir/usr/share/licenses/$pkgname"
|
||||
mv -v LICENSE "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
|
|
|
@ -18,9 +18,6 @@ pkgname=(
|
|||
'z-push-autodiscover'
|
||||
# device state
|
||||
'z-push-state-sql'
|
||||
# not *exactly* supported
|
||||
#'z-push-backend-stickynote'
|
||||
# no kopano packages, maintainer does not utilise them
|
||||
)
|
||||
pkgver=2.6.4
|
||||
pkgrel=1
|
||||
|
@ -37,14 +34,6 @@ source=(
|
|||
b2sums=('f1686a9b00a3a1427d2a1ce383dbc92f0156be8a2f2b901dda2e9c3be6fbef921a69f90d8e84f3962667742f98405eceb51fb139a8f33aa6094008f7b84f16ee'
|
||||
'549a61faeed3762ab81ce649eae93ea6cac218740d8bfb022ceef045d5a23eb14b4f94d3cc4065b6c16b8de23f716d2ad10323376c662b54d2dfbbf33cbf1be1'
|
||||
'23a9402bfe309b0e2f509c4f6d250c4b8cb985af358659170563b7393c17de168d8dea5fc1e6222f658b005cf1b2bd00afd0cdf19fc3e150645b9edd29a8cd01')
|
||||
#noextract=("$pkgbase-$pkgver.tar.gz")
|
||||
|
||||
#prepare() {
|
||||
# mkdir "$pkgname-$pkgver"
|
||||
# bsdtar \
|
||||
# --directory "$pkgname-$pkgver" \
|
||||
# --extract --file "$srcdir/$pkgname-$pkgver.tar.gz"
|
||||
#}
|
||||
|
||||
package_z-push-common() {
|
||||
depends=(
|
||||
|
@ -64,7 +53,6 @@ package_z-push-common() {
|
|||
'z-push-autodiscover: to utilise AutoDiscover'
|
||||
'z-push-state-sql: to store device state in a SQL database'
|
||||
)
|
||||
install="$pkgname.install"
|
||||
backup=(
|
||||
'etc/z-push/z-push.conf.php'
|
||||
'etc/z-push/policies.ini'
|
||||
|
@ -312,26 +300,4 @@ package_z-push-state-sql() {
|
|||
ln -sfv /etc/z-push/state-sql.conf.php "$pkgdir/usr/share/$pkgbase/backend/sqlstatemachine/config.php"
|
||||
}
|
||||
|
||||
#package_z-push-backend-stickynote() {
|
||||
# pkgdesc="Enables Z-Push to use a PostgreSQL database for notes"
|
||||
# depends=('z-push-common')
|
||||
# optdepends=(
|
||||
# 'php-pgsql: to use the PostgreSQL database backend'
|
||||
# 'postgresql: to use a local PostgreSQL database'
|
||||
# )
|
||||
# install='stickynote.install'
|
||||
# backup=('etc/z-push/stickynote.conf.php')
|
||||
#
|
||||
# cd src/backend/stickynote
|
||||
#
|
||||
# # package backend/stickynote
|
||||
# install -vDm644 -t "$pkgdir/usr/share/$pkgbase/backend/stickynote" stickynote.php
|
||||
#
|
||||
# # configuration
|
||||
# install -vDm644 config.php "$pkgdir/etc/$pkgbase/stickynote.conf.php"
|
||||
# ln -sfv /etc/z-push/stickynote.conf.php "$pkgdir/usr/share/$pkgbase/backend/stickynote/config.php"
|
||||
#
|
||||
# # documentation
|
||||
# install -vDm644 -t "$pkgdir/usr/share/doc/$pkgbase/stickynote" \
|
||||
# AUTHOR REQUIREMENTS create-sticky-tables.sql
|
||||
#}
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
post_install() {
|
||||
echo ""
|
||||
echo "Documentation for the SQL schema can be found in /usr/share/doc/z-push/stickynote"
|
||||
echo ""
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
post_install() {
|
||||
cat >&2 <<-EOF
|
||||
|
||||
Z-Push requires at least one of each:
|
||||
|
||||
* z-push-backend-*
|
||||
* z-push-ipc-*
|
||||
|
||||
Otherwise it will not work properly.
|
||||
|
||||
EOF
|
||||
}
|
Loading…
Reference in a new issue