summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8fd7bb13803ba9dc5e56df104440b391ca654fc (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
# Maintainer: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
_pkgname=lwjgl
pkgname=${_pkgname}2
pkgver=2.9.3
pkgrel=2
pkgdesc='Lightweight Java Game Library - for use in game projects in Java. Legacy version.'
arch=(any)
url='http://legacy.lwjgl.org/'
license=('BSD')
changelog=ChangeLog
options=(!strip)
source=("https://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%20$pkgver/$_pkgname-${pkgver}.zip")
md5sums=('2318cb02d35c7b7e28b838595aa353ed')
sha1sums=('6cf7522899c48f0295811a6ae88d93b6f8c21cad')

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  _sharedir="$pkgdir/usr/share"
  # Install licenses
  install -d "$_sharedir/licenses/$pkgname/3rdparty"
  install -m644 -t "$_sharedir/licenses/$pkgname/3rdparty" doc/3rdparty/*
  install -m644 -t "$_sharedir/licenses/$pkgname" doc/LICENSE
  rm -rf doc/LICENSE doc/3rdparty
  # Install docs
  install -d "$_sharedir/doc/$pkgname"
  install -m644 -t "$_sharedir/doc/$pkgname" doc/*
  rm -rf doc
  # Install library files
  install -d "$_sharedir/$pkgname"
  mv * "$_sharedir/$pkgname"
}

# vim:set ts=2 sw=2 et: