blob: 3952137ad771a6ff8d4533fc3d85b8814a5613c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Joffrey <j-off@live.fr>
# Contributor: eolianoe <eolianoe [at] gmail [DoT] com>
# Contributor: Edvinas Valatka <edacval@gmail.com>
# Contributor: Aaron Lindsay <aaron@aclindsay.com>
pkgname=seafile
pkgver=7.0.5
pkgrel=1
pkgdesc='An online file storage and collaboration tool'
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/haiwen/$pkgname"
license=('GPL2')
depends=(
'ccnet-server'
'libsearpc'
'libevent'
'fuse'
'python2'
'python2-future'
'sqlite'
)
makedepends=(
'vala'
'intltool'
)
conflicts=('seafile-server')
source=(
"seafile-$pkgver.tar.gz::$url/archive/v${pkgver}.tar.gz"
"seaf-cli@.service"
)
sha256sums=(
'19b353279e20f84af94b08c62b948748bda8cd69eeb980c9fc124ea9a9a5f825'
'c37510109c1de64c774896df39aece240c056b54414d2119fca01860211156ba'
)
provides=('seafile-client-cli')
prepare() {
cd "$srcdir/seafile-$pkgver"
sed -i 's|(DESTDIR)@prefix@|@prefix@|' './lib/libseafile.pc.in'
# Fix all script's python 2 requirement
shebang='#!/usr/bin/env python'
grep -s -l -r "$shebang" | xargs sed -i "1 s|$shebang|${shebang}2|"
}
build() {
cd "$srcdir/seafile-$pkgver"
./autogen.sh
./configure \
--enable-console \
--prefix=/usr \
PYTHON=/usr/bin/python2
make
}
package() {
cd "$srcdir/seafile-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 \
"$srcdir/seaf-cli@.service" \
"$pkgdir/usr/lib/systemd/system/seaf-cli@.service"
}
|