summaryrefslogtreecommitdiff
path: root/community/tdfsb/PKGBUILD
blob: a3629b2939a9758b2b6ad1ca3d80a9202b5b8ea0 (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
# $Id: PKGBUILD 77663 2012-10-13 11:45:35Z allan $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgname=tdfsb
pkgver=0.0.10
pkgrel=6
pkgdesc="SDL based graphical file browser"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.determinate.net/webdata/seg/tdfsb.html"
license=('GPL')
depends=('smpeg' 'freeglut' 'sdl_image' 'libxmu' 'glu')
source=("http://www.determinate.net/webdata/data/${pkgname}-${pkgver}.tar.gz"
        'tdfsb.desktop'
        'tdfsb.png')
md5sums=('8162994a7e882dc7074a5f628d2ac076'
         '4070a7de1153c00df875384a1817e43b'
         'ecabb39597a3c17f9541300869873e50')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  sed -i -e "s:-O2:${CFLAGS} ${LDFLAGS}:g" compile.sh
  ./compile.sh
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  install -D -m755 tdfsb "${pkgdir}/usr/bin/tdfsb"

  # Install desktop file
  install -D -m755 "${srcdir}/tdfsb.desktop" "${pkgdir}/usr/share/applications/tdfsb.desktop"
  # Install icon
  install -D -m644 "${srcdir}/tdfsb.png" "${pkgdir}/usr/share/pixmaps/tdfsb.png"
}