summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxantares2015-06-08 22:56:01 +0200
committerxantares2015-06-08 22:56:01 +0200
commit44cf52f13bf4e4deaa25a6c622d91f8fe39f385c (patch)
tree154862e4ef633d79dfa9bffe7801cca38f5145dd
downloadaur-44cf52f13bf4e4deaa25a6c622d91f8fe39f385c.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD35
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..340d4281933
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = mingw-w64-libtasn1
+ pkgdesc = The ASN.1 library used in GNUTLS (mingw-w64)
+ pkgver = 4.2
+ pkgrel = 1
+ url = http://www.gnu.org/software/libtasn1
+ arch = any
+ license = GPL3, LGPL
+ makedepends = mingw-w64-configure
+ makedepends = texinfo
+ depends = mingw-w64-crt
+ options = staticlibs
+ options = !strip
+ options = !buildflags
+ source = http://ftp.gnu.org/gnu/libtasn1/libtasn1-4.2.tar.gz
+ md5sums = 414df906df421dee0a5cf7548788d153
+
+pkgname = mingw-w64-libtasn1
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b7cbd25431b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+pkgname=mingw-w64-libtasn1
+pkgver=4.2
+pkgrel=1
+pkgdesc="The ASN.1 library used in GNUTLS (mingw-w64)"
+arch=(any)
+url="http://www.gnu.org/software/libtasn1"
+license=("GPL3, LGPL")
+makedepends=(mingw-w64-configure texinfo)
+depends=(mingw-w64-crt)
+options=(staticlibs !strip !buildflags)
+source=("http://ftp.gnu.org/gnu/libtasn1/libtasn1-${pkgver}.tar.gz")
+md5sums=('414df906df421dee0a5cf7548788d153')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ cd "${srcdir}"/libtasn1-${pkgver}
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ${_arch}-configure
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/libtasn1-${pkgver}/build-${_arch}"
+ make DESTDIR="$pkgdir" install
+ rm -r "$pkgdir/usr/${_arch}/share"
+ rm "$pkgdir"/usr/${_arch}/bin/*.exe
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+ done
+}