summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae4ff387070f9bbe0608b478edd50dbf5155f927 (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
64
65
66
67
# Maintainer: Seth Hendrick <seth@shendrick.net>
pkgname=chaskis
pkgver=0.4.0
pkgrel=1
epoch=
pkgdesc="A generic framework written in C# for making IRC Bots."
arch=('any')
url="https://github.com/xforever1313/Chaskis/"
license=('BSL')
groups=()
depends=('mono>=4.2.2')
makedepends=('nuget' 'git')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=()
source=("https://github.com/xforever1313/Chaskis/archive/$pkgver.tar.gz")
noextract=()
sha256sums=('0d82a0d41415f714371c1f4bacd5bdd0b042303424727fce90080a2719064928')
validpgpkeys=()

prepare() {
    echo "Nothing to prepare"
}

build() {
        cd "$srcdir/Chaskis-$pkgver"
        git clone https://github.com/xforever1313/sethcs SethCS
        nuget restore ./Chaskis/Chaskis.sln
        xbuild /p:Configuration=Release ./Chaskis/Chaskis.sln
}

check() {
        cd "$srcdir/Chaskis-$pkgver/Chaskis"
        mono ./packages/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Tests/bin/Release/Tests.dll
}

package() {

        cd "$srcdir/Chaskis-$pkgver"

        mkdir -p $pkgdir/usr/lib

        mono ./Chaskis/Install/ChaskisCliInstaller/bin/Release/ChaskisCliInstaller.exe ./Chaskis $pkgdir/usr/lib ./Chaskis/Install/windows/Product.wxs Release

        # Systemd service
        mkdir -p $pkgdir/usr/lib/systemd/user
        cp ./Chaskis/Install/linux/systemd/chaskis.service $pkgdir/usr/lib/systemd/user/chaskis.service

        # Binary
        mkdir -p $pkgdir/usr/bin/
        cp ./Chaskis/Install/linux/bin/chaskis $pkgdir/usr/bin/chaskis
}

pre_install() {
    return
}

post_remove() {
    return
}