summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkillruana2015-11-21 21:34:52 +0100
committerkillruana2015-11-21 21:34:52 +0100
commit1b54f9dbeca3401d152e4285762a1f13a3b746a7 (patch)
treecbdd331b8beec57ab13a9632c3c773d0d34d2d2f
downloadaur-1b54f9dbeca3401d152e4285762a1f13a3b746a7.tar.gz
First commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD31
-rw-r--r--qflow.patch73
3 files changed, 122 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..49122839754
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = qflow
+ pkgdesc = OSU 0.35um open-source standard cell set
+ pkgver = 1.0.99
+ pkgrel = 1
+ url = http://opencircuitdesign.com/qflow/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = graywolf
+ depends = qrouter
+ depends = yosys
+ source = http://opencircuitdesign.com/qflow/archive/qflow-1.0.99.tgz
+ source = qflow.patch
+ sha512sums = 6b6bb473b03552043684394c8ff5ef3c460a3d837a28627f278b87f1c970552119922e2965429269b7660184b76f507a69280dadae1344081e0f7d0f941921b7
+ sha512sums = 9115eaf1d8036ce21ec0a5568fe8a56ba2fb94b5898fe8347ae035e96b41462420a5161655995acff7be30b997f7dc2d4f0fba436dc9fe35ddce26912b77b40f
+
+pkgname = qflow
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..eeef13c5f17
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: killruana <killruana@gmail.com>
+pkgname=qflow
+pkgver=1.0.99
+pkgrel=1
+epoch=
+pkgdesc='OSU 0.35um open-source standard cell set'
+arch=('i686' 'x86_64')
+url='http://opencircuitdesign.com/qflow/'
+license=('GPL')
+depends=('graywolf' 'qrouter' 'yosys')
+source=("${url}archive/${pkgname}-${pkgver}.tgz"
+ "${pkgname}.patch")
+sha512sums=('6b6bb473b03552043684394c8ff5ef3c460a3d837a28627f278b87f1c970552119922e2965429269b7660184b76f507a69280dadae1344081e0f7d0f941921b7'
+ '9115eaf1d8036ce21ec0a5568fe8a56ba2fb94b5898fe8347ae035e96b41462420a5161655995acff7be30b997f7dc2d4f0fba436dc9fe35ddce26912b77b40f')
+
+prepare() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ patch -Np1 -i "${srcdir}/${pkgname}.patch"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ autoconf -v
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/qflow.patch b/qflow.patch
new file mode 100644
index 00000000000..306ec9b985d
--- /dev/null
+++ b/qflow.patch
@@ -0,0 +1,73 @@
+diff -aur qflow-1.0.99.pristine/configure.in qflow-1.0.99.new/configure.in
+--- qflow-1.0.99.pristine/configure.in 2015-05-18 15:41:59.000000000 +0200
++++ qflow-1.0.99.new/configure.in 2015-11-20 21:43:06.667490218 +0100
+@@ -178,14 +178,14 @@
+ [ --with-libdir=DIR path to qflow runtime files], [
+ QFLOW_LIB_DIR=$withval
+ ], [
+- QFLOW_LIB_DIR=${ac_default_prefix}/share/qflow
++ QFLOW_LIB_DIR=${prefix}/share/qflow
+ ])
+
+ AC_ARG_WITH(bindir,
+ [ --with-bindir=DIR path to qflow launch script], [
+ QFLOW_BIN_DIR=$withval
+ ], [
+- QFLOW_BIN_DIR=${ac_default_prefix}/bin
++ QFLOW_BIN_DIR=${prefix}/bin
+ ])
+
+ dnl AC_SUBST(QFLOW_QROUTER_PATH)
+diff -aur qflow-1.0.99.pristine/scripts/makesim.sh qflow-1.0.99.new/scripts/makesim.sh
+--- qflow-1.0.99.pristine/scripts/makesim.sh 2015-05-18 15:41:59.000000000 +0200
++++ qflow-1.0.99.new/scripts/makesim.sh 2015-11-20 21:44:54.860238260 +0100
+@@ -22,7 +22,7 @@
+ rm -f ${cellname}.ext
+ rm -f ${cellname}.sim
+
+-/usr/local/bin/magic -dnull -noconsole <<EOF
++/usr/bin/magic -dnull -noconsole <<EOF
+ drc off
+ box 0 0 0 0
+ load ${cellname}
+diff -aur qflow-1.0.99.pristine/src/Makefile.in qflow-1.0.99.new/src/Makefile.in
+--- qflow-1.0.99.pristine/src/Makefile.in 2015-05-18 15:41:59.000000000 +0200
++++ qflow-1.0.99.new/src/Makefile.in 2015-11-20 22:11:28.854948550 +0100
+@@ -9,7 +9,7 @@
+ LDFLAGS = @LDFLAGS@
+ INSTALL = @INSTALL@
+
+-QFLOW_LIB_DIR = @QFLOW_LIB_DIR@
++QFLOW_BIN_DIR = @QFLOW_BIN_DIR@
+ QFLOW_GRAYWOLF_PATH = @QFLOW_GRAYWOLF_PATH@
+ QFLOW_QROUTER_PATH = @QFLOW_QROUTER_PATH@
+ QFLOW_ABC_PATH = @QFLOW_ABC_PATH@
+@@ -26,7 +26,7 @@
+ SOURCES := $(patsubst %.o,%.c,$(OBJECTS))
+ TARGETS := $(patsubst %.o,%$(EXEEXT),$(OBJECTS))
+
+-BININSTALL = ${QFLOW_LIB_DIR}/bin
++BININSTALL = ${QFLOW_BIN_DIR}
+
+ all: $(TARGETS)
+
+@@ -57,19 +57,6 @@
+ @for target in $(TARGETS); do \
+ $(INSTALL) $$target $(DESTDIR)${BININSTALL} ;\
+ done
+- @echo "Installing links to graywolf, qrouter, odin_ii, and abc"
+- (cd $(DESTDIR)${BININSTALL}; $(RM) -f graywolf; ln -s $(QFLOW_GRAYWOLF_PATH) graywolf)
+- (cd $(DESTDIR)${BININSTALL}; $(RM) -f qrouter; ln -s $(QFLOW_QROUTER_PATH) qrouter)
+- @if test "${HAVE_ABC}" = "1"; then \
+- (cd $(DESTDIR)${BININSTALL}; $(RM) -f abc; ln -s $(QFLOW_ABC_PATH) abc); \
+- fi
+- @if test "${HAVE_ODIN_II}" = "1"; then \
+- (cd $(DESTDIR)${BININSTALL}; $(RM) -f odin_ii; ln -s $(QFLOW_ODIN_PATH) odin_ii); \
+- fi
+- (cd $(DESTDIR)${BININSTALL}; $(RM) -f magic; ln -s $(QFLOW_MAGIC_PATH) magic)
+- @if test "${HAVE_YOSYS}" = "1"; then \
+- (cd $(DESTDIR)${BININSTALL}; $(RM) -f yosys; ln -s $(QFLOW_YOSYS_PATH) yosys); \
+- fi
+
+ uninstall:
+ $(RM) -rf ${BININSTALL}