-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathPKGBUILD
More file actions
61 lines (53 loc) · 2.14 KB
/
Copy pathPKGBUILD
File metadata and controls
61 lines (53 loc) · 2.14 KB
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
# Maintainer: Simon Schubert <sschubert89@gmail.com>
# https://github.com/SimonSchubert/Braincup
pkgname=braincup-bin
pkgver=2.26.0
pkgrel=1
pkgdesc='Train your math skills, memory and focus'
arch=('x86_64')
url='https://github.com/SimonSchubert/Braincup'
license=('Apache-2.0')
depends=('hicolor-icon-theme')
provides=('braincup')
conflicts=('braincup')
options=('!strip')
source=("Braincup-${pkgver}-linux-x86_64.tar.gz::https://github.com/SimonSchubert/Braincup/releases/download/v${pkgver}/Braincup-${pkgver}-linux-x86_64.tar.gz")
sha256sums=('924cdf1b05952c7630a623d344a13d7d354e8a17a468f4b98818186fdb8c4f24')
package() {
# Install application files
install -dm755 "${pkgdir}/opt/braincup"
cp -r "${srcdir}/Braincup/"* "${pkgdir}/opt/braincup/"
chmod -R go-w "${pkgdir}/opt/braincup"
# Install wrapper script
install -Dm755 /dev/stdin "${pkgdir}/usr/bin/braincup" << 'EOF'
#!/bin/sh
exec /opt/braincup/bin/Braincup "$@"
EOF
# Install desktop entry
install -Dm644 /dev/stdin "${pkgdir}/usr/share/applications/braincup.desktop" << EOF
[Desktop Entry]
Name=Braincup
Comment=Train your math skills, memory and focus
Exec=braincup
Icon=braincup
Type=Application
Categories=Game;Education;
Keywords=Math;Memory;Focus;Brain;Training;Game;
StartupWMClass=compose-window
Terminal=false
EOF
# Install icon (real app icon shipped inside the jpackage app-image)
install -Dm644 "${srcdir}/Braincup/lib/Braincup.png" \
"${pkgdir}/usr/share/icons/hicolor/512x512/apps/braincup.png" 2>/dev/null || \
install -Dm644 /dev/null "${pkgdir}/usr/share/icons/hicolor/512x512/apps/braincup.png"
# Install license
install -Dm644 "${srcdir}/Braincup/lib/Braincup.copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" 2>/dev/null ||
install -Dm644 "${srcdir}/Braincup/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" 2>/dev/null || true
}
# Publishing steps:
# 1. Create AUR account at https://aur.archlinux.org
# 2. git clone ssh://aur@aur.archlinux.org/braincup-bin.git
# 3. Copy PKGBUILD and .SRCINFO into the cloned repo
# 4. git add PKGBUILD .SRCINFO
# 5. git commit -m "Initial upload: braincup-bin 2.5.0"
# 6. git push