blob: c284adef9db37cbeaabb4339ce3be36030a01e14 (
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
|
# Maintainer: HE Yaowen <he.yaowen@hotmail.com>
pkgname=dostron
pkgver=0.1.0
pkgrel=1
pkgdesc="An application to organise your collection of DOS programs for DOSBox."
arch=("any")
url="https://github.com/he-yaowen/dostron"
license=("GPL-3.0")
depends=("electron")
source=(https://github.com/he-yaowen/dostron/releases/download/v$pkgver/$pkgname-$pkgver-asar.tar.xz)
sha256sums=("2465091b4fd58d4e34ba339a1a73bedb758a88ae5162d108f10cb965f65f8b8e")
build() {
mkdir -p $srcdir/opt
mkdir -p $srcdir/usr/bin
mkdir -p $srcdir/usr/share/applications
tar -xvf $pkgname-$pkgver-aur-$arch.tar.xz -C $srcdir/opt
cat > $srcdir/usr/bin/dostron <<EOF
#!/bin/bash
exec electron /opt/$pkgname-$pkgver/app.asar
EOF
chmod +x $srcdir/usr/bin/dostron
cat > $srcdir/usr/share/applications/$pkgname.desktop <<EOF
[Desktop Entry]
Name=Dostron
Version=$pkgver
Comment=An application to organise your collection of DOS programs for DOSBox.
Type=Application
Exec=dostron
Icon=/opt/$pkgname-$pkgver/dostron.png
Terminal=false
StartupNotify=false
Categories=Application;Game;
EOF
}
package() {
cp -r $srcdir/opt $pkgdir
cp -r $srcdir/usr $pkgdir
}
|