summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 14 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ec8bf210622..e5628f88e5b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,32 @@
pkgname=mingw-w64-libtasn1
pkgver=4.10
-pkgrel=1
+pkgrel=2
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)
+makedepends=(mingw-w64-configure)
depends=(mingw-w64-crt)
options=(staticlibs !strip !buildflags)
-source=("http://ftp.gnu.org/gnu/libtasn1/libtasn1-${pkgver}.tar.gz")
-md5sums=('f4faffdf63969d0e4e6df43b9679e8e5')
+source=("http://ftp.gnu.org/gnu/libtasn1/libtasn1-${pkgver}.tar.gz"
+ 0001-Rename-gnulib-symbols.patch)
+md5sums=('f4faffdf63969d0e4e6df43b9679e8e5'
+ 'b966fbc667038870bd472b38b086e79f')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+prepare() {
+ cd "${srcdir}"/libtasn1-${pkgver}
+ # https://cgit.freedesktop.org/gstreamer/cerbero/tree/recipes/libtasn1/0001-Rename-gnulib-symbols.patch
+ patch -p1 -i "${srcdir}"/0001-Rename-gnulib-symbols.patch
+ autoreconf -vfi
+}
+
build() {
cd "${srcdir}"/libtasn1-${pkgver}
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
- ${_arch}-configure
+ ${_arch}-configure --disable-doc
make
popd
done
@@ -27,7 +36,6 @@ 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