summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38fdf16a9b7078293318abfc77df482347269976 (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: Jozef Riha <jose1711 at gmail dot com>

pkgname=gtools
pkgver=0.1.0
pkgrel=1
pkgdesc="Tool to read 2MGUI disks in Linux"
arch=('x86_64')
url="http://www.manty.net/www.geocities.com/SiliconValley/Lakes/1486/smanty.html"
license=('GPL')
depends=('glibc')
source=("http://sourceforge.net/projects/gnochm/files/gnochm/0.9.11/gnochm-0.9.11.tar.gz" "Makefile.patch")
source=('http://www.manty.net/www.geocities.com/SiliconValley/Lakes/1486/gtools-0_1_0.tgz'
        'errno.patch')

prepare() {
  patch -p1 -i errno.patch
}

build() {
  gcc gtools.c -o gtools
}

package() {
  install -Dm755 $srcdir/gtools $pkgdir/usr/bin/gtools
  for f in gcopy gdir gimage gtype
  do
    ln -sf gtools "$pkgdir/usr/bin/$f"
  done
  install -Dm644 $srcdir/COPYING $pkgdir/usr/share/licenses/gtools/COPYING
  install -Dm644 $srcdir/README $pkgdir/usr/share/doc/gtools/README
}
md5sums=('33c7806b35a99fb9dd95738f2017de83'
         '5636003942f5c0de253b064c983f4f29')