blob: ab896bc72e87c6d92656b8fa5863499147e72f8d (
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
|
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
_pkgname=mdlshit
pkgname=$_pkgname-bin
pkgver=2.3.2
pkgrel=3
pkgdesc="source engine .mdl v49 -> v53 converter (binary release)"
arch=('x86_64')
url="https://github.com/headassbtw/mdlshit"
license=('GPL2')
makedepends=('imagemagick')
conflicts=($_pkgname)
provides=($_pkgname)
source=("$_pkgname-$pkgver.tar.gz::$url/releases/download/$pkgver/${_pkgname}_linux_x64.tar.gz"
"$url/raw/$pkgver/product.ico")
sha256sums=('b01aa6f2d2f96982399faff8f177a96df3538ce75771aa9445c03b519cb8ecb0'
'SKIP')
prepare() {
# Create a shortcut
echo "Categories=Game;" >> desktop
sed -i '1 i\Comment=source engine .mdl v49 -> v53 converter' desktop
sed -i '1 i\StartupWMClass=mdlshit' desktop
sed -i '1 i\Icon=mdlshit' desktop
sed -i '1 i\Type=Application' desktop
sed -i '1 i\Terminal=false' desktop
sed -i '1 i\Exec=mdlshit %U' desktop
sed -i '1 i\Name=mdlshit' desktop
sed -i '1 i\[Desktop Entry]' desktop
mv desktop $pkgname.desktop
convert product.ico -strip $_pkgname.png
}
package() {
install -Dm644 $_pkgname.png -t "$pkgdir/usr/share/pixmaps"
install -Dm644 $pkgname.desktop -t "$pkgdir/usr/share/applications"
install -Dm755 $_pkgname -t "$pkgdir/usr/bin"
}
|