diff options
author | database64128 | 2021-08-08 12:48:26 +0800 |
---|---|---|
committer | database64128 | 2021-08-08 12:48:26 +0800 |
commit | 1ed88a45ac3796d1e5164dcde637cde3f9000e47 (patch) | |
tree | 5523c9c437bbd91c6266a68319cd59af72867a9d /PKGBUILD | |
parent | c88d42edb74378e1bcc203c8a4205d0bfda8ab2b (diff) | |
download | aur-cubic-bot-telegram-git.tar.gz |
🏡 Housekeeping
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,6 +1,7 @@ # Maintainer: database64128 <free122448@hotmail.com> + pkgname=cubic-bot-telegram-git -pkgver=1.0.r36.g451e627 +pkgver=1.0.r42.g9bb3bd2 pkgrel=1 pkgdesc="A stupid and annoying chatbot for your group chats" arch=(x86_64) @@ -14,12 +15,12 @@ source=("$pkgname::git+$url.git") b2sums=('SKIP') pkgver() { - cd "$srcdir/$pkgname" + cd $pkgname git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "$srcdir/$pkgname" + cd $pkgname dotnet publish CubicBot.Telegram -c Release \ -p:DefineConstants=PACKAGED \ -p:PublishReadyToRun=true \ @@ -34,7 +35,7 @@ build() { } package() { - cd "$srcdir/$pkgname" + cd $pkgname install -Dm755 CubicBot.Telegram/bin/Release/net5.0/linux-x64/publish/cubic-bot-telegram $pkgdir/usr/bin/cubic-bot-telegram install -Dm644 systemd/user/cubic-bot-telegram.service $pkgdir/usr/lib/systemd/user/cubic-bot-telegram.service } |