summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95f2333d98bd10271db5f831e24227ffb22ddd7e (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
44
45
46
47
48
49
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contirbutor: Eric BĂ©langer <eric@archlinux.org>

pkgname=xfig-git
_pkgname=xfig
pkgver=3.2.9.r20.g436aa4a
pkgrel=1
pkgdesc="An interactive drawing tool"
arch=('x86_64' 'i686')
url="http://mcj.sourceforge.net/"
license=('custom')
depends=('libjpeg' 'xaw3d' 'xorg-fonts-75dpi' 'xorg-fonts-100dpi' 'libpng' 'libxpm' 'ghostscript' 'libxft')
optdepends=('fig2dev: to use the frontend to convert fig files')
makedepends=('git' 'fig2dev' 'htmldoc')
provides=("${_pkgname}=${pkgver%%.r*}-${pkgrel}")
conflicts=("${_pkgname}")
options=('!makeflags' '!emptydirs')
source=($pkgname::git+https://git.code.sf.net/p/mcj/xfig
	xfig-aspell.patch xfig-3.2.5-color-resources.patch
        LICENSE)
sha1sums=('SKIP'
          '51461817aefe8b695ac636d865d0d99443bf0582'
          'dd41e0a007bb74b74e1af50b6b04aa6aec61ab22'
          '31edf4cfab708820ea3f114d095dfef5aa88e5aa')

pkgver() {
  cd ${pkgname}
  git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
  cd ${pkgname}
  patch -p1 -b -z .orig -i "${srcdir}/xfig-aspell.patch"
  patch -p1 -b -z .orig -i "${srcdir}/xfig-3.2.5-color-resources.patch"
  autoreconf -fiv
}

build() {
  cd ${pkgname}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}

  make DESTDIR="${pkgdir}" install
  install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"	
}