blob: 097fc12a5c52d612d952932ef26a811d4b2bfc5e (
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
|
# Maintainer: Cycloheptan <carl.schneider+archlinux@rub.de>
pkgname=phantombot
pkgver=3.4.2
pkgrel=1
pkgdesc="PhantomBot is a Twitch chat bot powered by Java."
arch=('x86_64')
url='https://phantombot.github.io/PhantomBot/'
license=('GPL3')
depends=('jre-openjdk')
install=phantombot.install
source=("https://github.com/PhantomBot/PhantomBot/releases/download/v${pkgver}/PhantomBot-${pkgver}.zip"
"phantombot.service")
md5sums=('a0dd11990470bcc5566a9c169bc9e368'
'b9e8e8a3b567bc72f44b2192dacbd630')
package() {
cd "$srcdir/PhantomBot-${pkgver}"
install -d "${pkgdir}/opt/PhantomBot" "${pkgdir}/usr/bin"
cp -r $srcdir/PhantomBot-${pkgver}/*/ "$pkgdir/opt/PhantomBot/";
install -m0644 -t "$pkgdir/opt/PhantomBot/" "$srcdir/PhantomBot-${pkgver}/"PhantomBot.jar
install -m0755 -t "$pkgdir/opt/PhantomBot/" "$srcdir/PhantomBot-${pkgver}/"{launch.sh,launch-service.sh}
ln -s ../../opt/PhantomBot/launch.sh "$pkgdir/usr/bin/phantombot"
ln -s ../../opt/PhantomBot/launch-service.sh "$pkgdir/usr/bin/phantombot-service"
install -Dm0644 "$srcdir/phantombot.service" "$pkgdir/usr/lib/systemd/system/phantombot.service";
}
|