blob: 9fddc3c1255825897e674982a1486083e9be81c5 (
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
|
pkgname=camelot
_gitname="Camelot"
_outputfolder="Release"
pkgver=v0.3.0
_gittag=v0.3.0
pkgrel=1
url="https://github.com/IngvarX/Camelot"
pkgdesc="Cross-platform file manager written in C#"
arch=("any")
provides=("camelot")
conflicts=("camelot-git")
license=("GPL-3.0")
depends=("dotnet-runtime-3.1")
makedepends=("dotnet-sdk-3.1" "git")
source=("git+https://github.com/IngvarX/${_gitname}.git#tag=${_gittag}")
sha256sums=("SKIP")
build() {
cd $srcdir/$_gitname
dotnet build --configuration release --output "${_outputfolder}"
}
package() {
mkdir -p "${pkgdir}/usr/share/"
cp -r "${srcdir}/${_gitname}/${_outputfolder}/" "${pkgdir}/usr/share/${pkgname}"
mkdir -p "${pkgdir}/usr/bin/"
ln -s "/usr/share/${pkgname}/${_gitname}" "${pkgdir}/usr/bin/${pkgname}"
# License
install -Dm644 "${srcdir}/${_gitname}/LICENSE.md" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE.md"
# Icon for .desktop
install -Dm644 "${srcdir}/${_gitname}/src/Camelot/Assets/logo.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/$pkgname.png"
# .desktop
install -Dm644 "${srcdir}/${_gitname}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
|