linux_alpine/srcpkgs/seafile/APKBUILD

37 lines
1.1 KiB
Plaintext

# Contributor: ITmodulo <itmodulo@disroot.org>
# Maintainer: ITmodulo <itmodulo@disroot.org>
pkgname=seafile
pkgver=9.0.4
pkgrel=1
pkgdesc="An online file storage and collaboration tool"
arch="all"
url="https://github.com/haiwen/$pkgname"
license="GPL-2.0-only"
depends="libsearpc py3-future fuse"
makedepends="vala intltool libevent-dev fuse-dev libwebsockets-dev sqlite-dev py3-future libsearpc libtool automake autoconf pkgconf curl-dev"
subpackages="$pkgname-doc $pkgname-pyc"
source="seafile-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
prepare() {
default_prepare
cd "$srcdir/seafile-$pkgver"
sed -i 's|(DESTDIR)@prefix@|@prefix@|' './lib/libseafile.pc.in'
}
build() {
cd "$srcdir/seafile-$pkgver"
./autogen.sh
./configure \
--enable-console \
--prefix='/usr' \
PYTHON='/usr/bin/python3'
make
}
package() {
cd "$srcdir/seafile-$pkgver"
make DESTDIR="$pkgdir" install
}
sha512sums="
b0aece4330054d5d0b417370ed2160f4c4ef0c67e41335a2cad7f68e745302aa7fab5d46de411e9d24135ab67b782872d7b771bdcd5c5c1e14978086fc7e4d3e seafile-9.0.4.tar.gz
"