diff options
author | Andrew Sun | 2018-08-09 13:01:05 -0400 |
---|---|---|
committer | Andrew Sun | 2018-08-09 13:01:05 -0400 |
commit | b1637d977cf4b040d31d2d40e0f990a4d5bb3fdc (patch) | |
tree | 1d6a9c09c85add5ae1a24f57e3abc7def54eaa60 | |
download | aur-b1637d977cf4b040d31d2d40e0f990a4d5bb3fdc.tar.gz |
add mingw-w64-potrace (version 1.15)
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | 001-reaarange-compiler-detect.patch | 11 | ||||
-rw-r--r-- | PKGBUILD | 48 |
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d04395a4dc34 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-potrace + pkgdesc = Utility for tracing a bitmap (input: PBM,PGM,PPM,BMP; output: EPS,PS,PDF,SVG,DXF,PGM,Gimppath,XFig) (mingw-w64) + pkgver = 1.15 + pkgrel = 1 + url = http://potrace.sourceforge.net/ + arch = any + license = GPL + makedepends = mingw-w64-configure + depends = mingw-w64-crt + depends = mingw-w64-zlib + options = !strip + options = !buildflags + options = staticlibs + source = http://potrace.sourceforge.net/download/1.15/potrace-1.15.tar.gz + source = 001-reaarange-compiler-detect.patch + sha256sums = a9b33904ace328340c850a01458199e0064e03ccaaa731bc869a842b1b8d529d + sha256sums = 2903ae3c291468b9e30f20bc0ab9f261d0c6922ead8fc641b486290bfa33c187 + +pkgname = mingw-w64-potrace + diff --git a/001-reaarange-compiler-detect.patch b/001-reaarange-compiler-detect.patch new file mode 100644 index 000000000000..8b18edc3b6ac --- /dev/null +++ b/001-reaarange-compiler-detect.patch @@ -0,0 +1,11 @@ +--- potrace-1.15/configure.ac.orig 2017-12-01 07:10:43.783207400 +0300 ++++ potrace-1.15/configure.ac 2017-12-01 07:10:59.491835900 +0300 +@@ -28,7 +28,7 @@ + dnl figure out compiler options + + dnl Check for compiler +-AC_PROG_CC([clang gcc cc c99 mgcc c89 pcc opencc sunc99 suncc]) ++AC_PROG_CC([gcc cc c99 mgcc c89 pcc opencc sunc99 suncc clang]) + + dnl Also add CADD to the CFLAGS at configure time or compile time + AC_SUBST(CADD) diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e68468101432 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Andrew Sun <adsun701@gmail.com> + +pkgname=mingw-w64-potrace +_pkgname=potrace +pkgver=1.15 +pkgrel=1 +pkgdesc="Utility for tracing a bitmap (input: PBM,PGM,PPM,BMP; output: EPS,PS,PDF,SVG,DXF,PGM,Gimppath,XFig) (mingw-w64)" +arch=('any') +url='http://potrace.sourceforge.net/' +license=('GPL') +makedepends=('mingw-w64-configure') +depends=('mingw-w64-crt' 'mingw-w64-zlib') +options=('!strip' '!buildflags' 'staticlibs') +source=("http://potrace.sourceforge.net/download/${pkgver}/${_pkgname}-${pkgver}.tar.gz" + "001-reaarange-compiler-detect.patch") +sha256sums=('a9b33904ace328340c850a01458199e0064e03ccaaa731bc869a842b1b8d529d' + '2903ae3c291468b9e30f20bc0ab9f261d0c6922ead8fc641b486290bfa33c187') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare() { + cd "${srcdir}/${_pkgname}-${pkgver}" + patch -p1 -i ${srcdir}/001-reaarange-compiler-detect.patch + autoreconf -fiv +} + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure \ + --mandir=/usr/${_arch}/share/man \ + --with-libpotrace \ + .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/${_pkgname}-${pkgver}/build-${_arch}" + make DESTDIR="${pkgdir}" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.exe + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |