* add fig2dev

This commit is contained in:
Alexander Baldeck 2020-08-26 14:25:21 +02:00
parent d8a056ab19
commit 87b74b25f1
2 changed files with 62 additions and 0 deletions

23
fig2dev/LICENSE Normal file
View File

@ -0,0 +1,23 @@
/*
* TransFig: Facility for Translating Fig code
* Copyright (c) 1991 by Micah Beck
* Parts Copyright (c) 1985-1988 by Supoj Sutanthavibul
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable, world-wide, paid up, royalty-free,
* nonexclusive right and license to deal in this software and
* documentation files (the "Software"), including without limitation the
* rights to use, copy, modify, merge, publish and/or distribute copies of
* the Software, and to permit persons who receive copies from any such
* party to do so, with the only requirement being that this copyright
* notice remain intact.
*
*/
THE LAWRENCE BERKELEY NATIONAL LABORATORY DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL,
INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

39
fig2dev/PKGBUILD Normal file
View File

@ -0,0 +1,39 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
pkgname=fig2dev
pkgver=3.2.7.b
_upstreamver=3.2.7b
pkgrel=1
pkgdesc="Format conversion utility that can be used with xfig"
arch=(x86_64 powerpc64le)
url="http://mcj.sourceforge.net/"
license=('custom')
depends=('libpng' 'libxpm' 'bc' 'netpbm' 'ghostscript')
makedepends=()
conflicts=('transfig')
replaces=('transfig')
provides=('transfig')
source=("https://downloads.sourceforge.net/mcj/${pkgname}-${_upstreamver}.tar.xz"
"LICENSE")
sha1sums=('8097c178b7fff1023112250938cc87837c0f564e'
'b8b712871615308b8b6add92f86d218437d652f2')
build() {
cd "${pkgname}-${_upstreamver}"
./configure --prefix=/usr --enable-transfig
make FIG2DEV_LIBDIR=/usr/share/fig2dev XFIGLIBDIR=/usr/share/xfig
}
check() {
cd "${pkgname}-${_upstreamver}"
make check
}
package() {
cd "${pkgname}-${_upstreamver}"
make DESTDIR="${pkgdir}" XFIGLIBDIR=/usr/share/xfig \
FIG2DEV_LIBDIR=/usr/share/fig2dev MANPATH=/usr/share/man \
install
install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}