blob: 56c08f667189b6f2ea25ea68c7d19ba6ab1120ce (
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.3.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=("sqlite: For some Plugins")
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=()
source=("https://github.com/xforever1313/Chaskis/archive/$pkgver.tar.gz")
noextract=()
sha256sums=('54C009DE0D22F6C249E7042FBF6A80DB9D723609943CEA67878352BC24340B6F')
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
}
|