summaryrefslogtreecommitdiff
path: root/community/p2c
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/p2c
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/p2c')
-rw-r--r--community/p2c/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/community/p2c/PKGBUILD b/community/p2c/PKGBUILD
new file mode 100644
index 000000000..0a22bcdef
--- /dev/null
+++ b/community/p2c/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 66145 2012-02-23 02:13:19Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: tardo <tardo@nagi-fanboi.net>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=p2c
+pkgver=1.21alpha2
+pkgrel=10
+pkgdesc="pascal to c/c++ converter"
+arch=('i686' 'x86_64')
+url="http://packages.debian.org/sid/p2c"
+license=('GPL')
+depends=('perl')
+# http://ftp.debian.org/debian/pool/main/p/p2c/p2c_$pkgver-3.diff.gz)
+source=(http://www.ccrnp.ncifcrf.gov/~toms/p2c/p2c-$pkgver.tar.gz)
+md5sums=('8340429ae80be2e0e82c01f70c0355bb')
+
+build() {
+ cd $srcdir
+# patch -Np1 <../p2c_$pkgver-3.diff
+
+ cd src
+ sed -i 's#getline#xgetline#' *.c *.hdrs
+ make \
+ BINDIR=/usr/bin \
+ MANDIR=/usr/share/man/man1 \
+ LIBDIR=/usr/lib \
+ HOMEDIR=/usr/lib/p2c \
+ INCDIR=/usr/include/p2c \
+ ABSHOMEDIR=/usr/lib/p2c \
+ ABSLIBDIR=/usr/lib \
+ ABSINCDIR=/usr/include/p2c
+
+ mkdir -p $pkgdir/usr/bin \
+ $pkgdir/usr/share/man/man1 \
+ $pkgdir/usr/lib \
+ $pkgdir/usr/include/p2c
+ make install \
+ BINDIR=$pkgdir/usr/bin \
+ MANDIR=$pkgdir/usr/share/man/man1 \
+ LIBDIR=$pkgdir/usr/lib \
+ HOMEDIR=$pkgdir/usr/lib/p2c \
+ INCDIR=$pkgdir/usr/include/p2c \
+ ABSHOMEDIR=$pkgdir/usr/lib/p2c \
+ ABSLIBDIR=$pkgdir/usr/lib \
+ ABSINCDIR=$pkgdir/usr/include/p2c
+}