55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
|
# Maintainer: Alexander Zhirov <alexander@zhirov.kz>
|
||
|
pkgname=daster
|
||
|
pkgver=0.1.0
|
||
|
pkgbeta=-beta.1
|
||
|
pkgrel=0
|
||
|
pkgdesc="Daster Asterisk"
|
||
|
url="https://git.zhirov.kz/alexander/daster"
|
||
|
arch="all"
|
||
|
license="GPL-2.0"
|
||
|
options="!check"
|
||
|
source="
|
||
|
${pkgname}-${pkgver}${pkgbeta}.tar.gz::https://git.zhirov.kz/alexander/${pkgname}/archive/v${pkgver}${pkgbeta}.tar.gz
|
||
|
settings.patch
|
||
|
"
|
||
|
depends="
|
||
|
libpq
|
||
|
libcrypto1.1
|
||
|
libssl1.1
|
||
|
zlib
|
||
|
ldc-runtime
|
||
|
tzdata
|
||
|
"
|
||
|
makedepends="
|
||
|
dub
|
||
|
ldc
|
||
|
libc-dev
|
||
|
libpq-dev
|
||
|
openssl-dev
|
||
|
zlib-dev
|
||
|
"
|
||
|
builddir="${srcdir}/${pkgname}"
|
||
|
|
||
|
build() {
|
||
|
export DC=/usr/bin/ldc2
|
||
|
dub build --arch=$(uname -m) -b release
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
install -Dm644 "${builddir}/settings.conf.sample" "${pkgdir}/etc/${pkgname}/settings.conf"
|
||
|
install -Dm755 "${builddir}/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
||
|
install -dm755 "${pkgdir}/var/lib/${pkgname}/jq"
|
||
|
install -dm755 "${pkgdir}/var/lib/${pkgname}/js"
|
||
|
install -dm755 "${pkgdir}/var/lib/${pkgname}/public"
|
||
|
install -dm755 "${pkgdir}/var/lib/${pkgname}/images"
|
||
|
cp -r "${builddir}/jq"/* "${pkgdir}/var/lib/${pkgname}/jq/"
|
||
|
install -Dm644 "${builddir}/js"/* "${pkgdir}/var/lib/${pkgname}/js/"
|
||
|
install -Dm644 "${builddir}/public"/* "${pkgdir}/var/lib/${pkgname}/public/"
|
||
|
install -Dm644 "${builddir}/images"/* "${pkgdir}/var/lib/${pkgname}/images/"
|
||
|
}
|
||
|
|
||
|
sha512sums="
|
||
|
66b3263bcf6f067520ec2d9ed5f71a516cba6693c7cbc7c5fec1b37ca1ca31679f41c125792ee34324d04429b05173595388cbc49cd64a4263d4af7d40244fac ${pkgname}-${pkgver}${pkgbeta}.tar.gz
|
||
|
bcfebdbf496df25bff836883603e019509522109debb4747638c0a26d5f621715c2b64902573cdf71b39fd69479542dfc34f3612c4400f8acd36cab6860ff629 settings.patch
|
||
|
"
|