blob: 6847fa713f75f518835f882714d94bf83f60e8d1 (
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
68
69
70
71
72
73
74
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=coilgunrailgunutility-mono
pkgver=1.0.0
pkgrel=2
epoch=
pkgdesc="一个计算电磁炮的软件 Coilgun Railgun Misaka Mikoto 你指尖跳动的电光,是我永恒不变的信仰。"
arch=('any')
url="https://github.com/kmakise/CoilgunRailgunUtility"
license=('MIT')
groups=()
depends=('mono')
makedepends=('git')
checkdepends=()
optdepends=()
provides=('CoilgunRailgunUtility')
conflicts=()
replaces=()
backup=()
options=('!strip')
install=
changelog=
source=("${pkgname%-mono}::git+${url}.git")
noextract=()
sha256sums=('SKIP')
#validpgpkeys=()
build() {
cd "${srcdir}/${pkgname%-mono}"
xbuild RailgunCalcWin.sln
}
package() {
cd "${srcdir}/${pkgname%-mono}/bin/Debug/"
install -Dm0755 RailgunCalcWin.exe "${pkgdir}/opt/kmakise/${pkgname%-mono}/${pkgname%-mono}.exe"
install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/${pkgname%-mono}" <<EOF
#!/bin/bash
mono /opt/kmakise/${pkgname%-mono}/${pkgname%-mono}.exe "\$@"
EOF
install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/io.github.kmakise.coilgunrailgunutility.desktop" <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=CoilgunRailgunUtility
Comment=CoilgunRailgunUtility
Categories=Education;Electricity;
Icon=coilgunrailgunutility
Exec=coilgunrailgunutility
Terminal=false
EOF
install -Dm0644 /dev/stdin "${pkgdir}/usr/share/metainfo/io.github.kmakise.coilgunrailgunutility.metainfo.xml" <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>io.github.kmakise.coilgunrailgunutility</id>
<name>CoilgunRailgunUtility</name>
<summary>CoilgunRailgunUtility</summary>
<metadata_license>MIT</metadata_license>
<project_license>MIT</project_license>
<description>
<p>
一个计算电磁炮的软件 Coilgun Railgun Misaka Mikoto 你指尖跳动的电光,是我永恒不变的信仰。
</p>
</description>
<launchable type="desktop-id">io.github.kmakise.coilgunrailgunutility.desktop</launchable>
</component>
EOF
}
|