blob: b15f31a258dd8e97ffd250d24bdbef7532b8a0a9 (
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
|
# Maintainer: Axel Navarro <navarroaxel at gmail>
pkgname=taskcore
pkgver=1.0.0beta3
_pkgver=1.0.0-beta.3
pkgrel=1
pkgdesc='Command Line ToDo Management Application'
arch=('x86_64')
url='https://github.com/tarikguney/taskcore'
license=("APACHE")
depends=("icu")
makedepends=("dotnet-sdk")
options=("staticlibs")
source=("${url}/archive/v${_pkgver}.tar.gz")
sha256sums=('8472c31bb7cff8b6f543a46288753747d9c47fee8f32b3e198f8da5bcea3fca6')
build() {
cd "${pkgname}-${_pkgver}/TaskCore.App"
MSBUILDDISABLENODEREUSE=1 dotnet publish \
--configuration Release \
--self-contained true \
--runtime linux-x64 \
-p:PublishTrimmed=true \
--output ../${pkgname} \
./TaskCore.App.csproj
}
package() {
cd "${pkgname}-${_pkgver}"
install -d $pkgdir/usr/{bin,lib}
cp -r ${pkgname} "$pkgdir/usr/lib/"
ln -s "/usr/lib/${pkgname}/${pkgname}" "$pkgdir/usr/bin/${pkgname}"
install -Dm644 README.md --target-directory="$pkgdir/usr/share/doc/$pkgname/"
install -Dm644 LICENSE --target-directory="$pkgdir/usr/share/licenses/$pkgname/"
}
|