summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f03a34240f9f4ccce94cfe1bd3f842f3fb4dd537 (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
# Maintainer: osily <ly50247 at gmail dot com>
# Contributor: dorphell <dorphell@archlinux.org>
# Committer: Judd Vinet <jvinet@zeroflux.org>

pkgname=gqview-devel
_pkgname=gqview
pkgver=2.1.5
pkgrel=7
pkgdesc="An image browser and viewer"
arch=('i686' 'x86_64')
url="http://gqview.sourceforge.net/"
license=('GPL')
depends=('gtk2')
conflicts=('gqview')
provides=('gqview')
source=(http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
md5sums=('4644187d9b14b1dc11ac3bb146f262ea')

prepare() {
  cd "$srcdir/${_pkgname}-$pkgver"
  sed -i 's+.png++' gqview.desktop
  sed -i 's+image;++' gqview.desktop
}

build() {
  cd "$srcdir/${_pkgname}-$pkgver"
  ./configure LDFLAGS=" -lm -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" --prefix=/usr
  make
}

package() {
  cd "$srcdir/${_pkgname}-$pkgver"
  make DESTDIR="$pkgdir/" install
  install -Dm644 gqview.1 "$pkgdir"/usr/share/man/man1/$pkgname.1.gz
  rm -rf "$pkgdir"/usr/man
}