summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97db3052ecffcbf519a26576583dbce807cf8a71 (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
# Maintainer:

_pkgname="supertuxkart-assets"
pkgname="$_pkgname-svn"
pkgver=r18593
pkgrel=1
pkgdesc="A kart racing game featuring Tux and his friends - assets"
url="https://sf.net/projects/supertuxkart"
license=('LicenseRef-Various')
arch=('any')

makedepends=(
  'subversion'
)

provides=("$_pkgname")
conflicts=(
  "$_pkgname"
  'supertuxkart'
)

options=('!strip')

_pkgsrc="stk-assets"
source=("$_pkgsrc"::"svn+https://svn.code.sf.net/p/supertuxkart/code/stk-assets")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  local ver="$(svnversion)"
  printf "r%s" "${ver//[[:alpha:]]/}"
}

package() {
  install -dm755 "$pkgdir/usr/share/supertuxkart/data"
  for i in "$_pkgsrc"/[a-z]*/; do
    mv "${i%/}" "$pkgdir/usr/share/supertuxkart/data/"
  done

  install -Dm644 "$_pkgsrc/licenses.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  chmod -R u+rwX,go+rX,go-w "$pkgdir/"
}