blob: 1f159f4bbb86ed41e7232bfe63fdc05ef81a104d (
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
|
# Maintainer: Tomás Ralph <tomasralph2000@gmail.com>
_pkgname=Steam-Metadata-Editor
pkgver=1.0.2
pkgname=steam-metadata-editor-git
pkgrel=4
pkgdesc="A metadata editor for Steam"
arch=(any)
url="https://github.com/tralph3/Steam-Metadata-Editor.git"
license=('GPL3')
depends=(tk python)
makedepends=(git)
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "1.0.2.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
mkdir -pv $HOME/.local/share/${_pkgname}/config
local licdir="$pkgdir/usr/share/licenses/${pkgname%-git}"
local progdir="$pkgdir/opt/sme"
local bindir="$pkgdir/usr/bin"
local appdir="$pkgdir/usr/share/applications"
local imgdir="$pkgdir/usr/share/pixmaps/${pkgname%-git}"
local docdir="$pkgdir/usr/share/doc/${pkgname%-git}"
cd "${srcdir}/$_pkgname"
install -Dm0644 --target-directory "$docdir" "$srcdir/$_pkgname/README.md"
install -Dm0644 --target-directory "$licdir" "$srcdir/$_pkgname/LICENSE"
install -Dm0644 --target-directory "$imgdir" "$srcdir/$_pkgname/steam-metadata-editor.png"
install -Dm0644 --target-directory "$appdir" "$srcdir/$_pkgname/steam-metadata-editor.desktop"
install -dm0755 "$progdir"
cp -fa "$srcdir/$_pkgname/src/." "$progdir"
install -Dm0755 --target-directory "$bindir" "$srcdir/$_pkgname/steammetadataeditor"
}
|