diff options
author | root <root@rshg054.dnsready.net> | 2013-09-11 01:51:01 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-09-11 01:51:01 -0700 |
commit | 2cfbbdcb041073ed1f9aff2f2fd630b24e039e6d (patch) | |
tree | dc3af95fb8134ce025aa4a516ab1a00adf0e1917 /extra/xfig/PKGBUILD | |
parent | f5039428394b8715a685c006ab4c7421f45d0aff (diff) |
Wed Sep 11 01:49:28 PDT 2013
Diffstat (limited to 'extra/xfig/PKGBUILD')
-rw-r--r-- | extra/xfig/PKGBUILD | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/extra/xfig/PKGBUILD b/extra/xfig/PKGBUILD index 7b18b1044..832a84914 100644 --- a/extra/xfig/PKGBUILD +++ b/extra/xfig/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 184453 2013-05-06 19:40:21Z foutrelis $ +# $Id: PKGBUILD 194017 2013-09-10 00:31:09Z eric $ # Maintainer: Eric BĂ©langer <eric@archlinux.org> pkgname=xfig -pkgver=3.2.5b -pkgrel=9 +pkgver=3.2.5c +pkgrel=1 pkgdesc="An interactive drawing tool" arch=('i686' 'x86_64') url="http://www.xfig.org/userman/" @@ -16,52 +16,48 @@ install=xfig.install source=(http://downloads.sourceforge.net/mcj/${pkgname}.${pkgver}.full.tar.gz \ xfig-3.2.4-redhat.patch xfig-3.2.5-color-resources.patch \ xfig-3.2.5-urwfonts.patch \ - xfig-3.2.5-fhs.patch xfig-3.2.5-missing-protos.patch \ - xfig.3.2.5-modularX.patch xfig-3.2.5b-fix-eps-reading.patch \ - xfig-3.2.5b-libpng-1.5.patch LICENSE xfig.desktop) -sha1sums=('0730d7e6bc217c0de02682efb0078821512bb542' + LICENSE) +sha1sums=('47d31dd9ad46819732ab74db340e11489db2c646' '926ad99c7221baa4aa9e9737722958860b2700fc' - 'b7c03fb70066ff476a4039a8c0f8930c15edef68' + '45e7fb80193825b088d798089aeade2e1729c9ac' 'e595ccdbe293ea0fdecbf59a2192ae57ced2c8eb' - '39bec6bac9746b643b05fd1286826113ede07ff6' - 'bd76cd50be6a5789cfd6f182309cfd7056be04f3' - 'a1285f4e61ad2eec040460ab03e8022098e7f78e' - '12a64ddaf65a73e23ef74f31483515a0e262768c' - '83032eb61c8dc96d5fc509a1ce632528457d4598' - '31edf4cfab708820ea3f114d095dfef5aa88e5aa' - '9011b8fa6143e37525b28cc9800a3bf2d6b008d2') + '31edf4cfab708820ea3f114d095dfef5aa88e5aa') prepare() { cd ${pkgname}.${pkgver} patch -p1 < ../xfig-3.2.4-redhat.patch - patch -p1 < ../xfig-3.2.5-fhs.patch - patch -p1 < ../xfig.3.2.5-modularX.patch patch -p1 < ../xfig-3.2.5-color-resources.patch patch -p1 < ../xfig-3.2.5-urwfonts.patch - patch -p1 < ../xfig-3.2.5-missing-protos.patch - patch -p1 < ../xfig-3.2.5b-fix-eps-reading.patch - patch -p1 < ../xfig-3.2.5b-libpng-1.5.patch + sed -i -e 's|X11R6/||' -e 's|image/x-xfig|image/fig;image/x-xfig|' xfig.desktop + echo -e "Categories=Application;Graphics;\nIcon=xfig" >> xfig.desktop sed -i 's/#define XAW3D/XCOMM #define XAW3D/' Imakefile + sed -i 's/XCOMM USEINLINE/USEINLINE/' Imakefile + sed -i -e 's/XCOMM #define I18N/#define I18N/' \ + -e 's/XCOMM XAW_INTERN/XAW_INTERN/' Imakefile chmod 755 Libraries + groff -mandoc -Thtml Doc/xfig.man > Doc/xfig_man.html } build() { cd ${pkgname}.${pkgver} xmkmf - make DOCDIR=/usr/share/doc + make XFIGDOCDIR=/usr/share/doc/xfig LIBDIR=/usr/share \ + XAPPLOADDIR=/usr/share/X11/app-defaults } package() { cd ${pkgname}.${pkgver} - make DESTDIR="${pkgdir}" DOCDIR=/usr/share/doc install.all - rm "${pkgdir}/usr/lib/X11/app-defaults" + + make DESTDIR="${pkgdir}" XFIGDOCDIR=/usr/share/doc/xfig LIBDIR=/usr/share \ + MANDIR=/usr/share/man/man1 XAPPLOADDIR=/usr/share/X11/app-defaults install.all + rm "${pkgdir}/usr/share/app-defaults" find "${pkgdir}/usr/share/xfig/Libraries" -type f -exec chmod 0644 {} \; find "${pkgdir}/usr/share/xfig/Libraries" -type d -exec chmod 0755 {} \; find "${pkgdir}/usr/share/doc/xfig" -type f -exec chmod 0644 {} \; find "${pkgdir}/usr/share/doc/xfig" -type d -exec chmod 0755 {} \; - install -D -m644 ../xfig.desktop "${pkgdir}/usr/share/applications/xfig.desktop" + install -D -m644 xfig.desktop "${pkgdir}/usr/share/applications/xfig.desktop" install -D -m644 xfig.png "${pkgdir}/usr/share/pixmaps/xfig.png" install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |