diff options
author | bemxio | 2024-03-26 16:24:25 +0100 |
---|---|---|
committer | bemxio | 2024-03-26 16:24:25 +0100 |
commit | 01d867aeaac5fe7e397f3b254f3ef909913c4117 (patch) | |
tree | 9e80b49f0790f923f2917ae5f774d6f2734314f2 /PKGBUILD | |
parent | c9f728d3186922accd2b98e697a82ffc6369d0c3 (diff) | |
download | aur-01d867aeaac5fe7e397f3b254f3ef909913c4117.tar.gz |
use a valid SPDX license identifier
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 63 |
1 files changed, 31 insertions, 32 deletions
@@ -1,21 +1,20 @@ -# Maintainer: bemxio <bemxiov@protonmail.com> -# Contributor: Felix Yan <felixonmars@archlinux.org> -# Contributor: pingplug <aur@pingplug.me> +# Maintainer: bemxio <bemxiov at protonmail dot com> +# Contributor: Felix Yan <felixonmars at archlinux dot org> +# Contributor: pingplug <aur at pingplug dot me> pkgname=mingw-w64-winpthreads-git pkgdesc="MinGW-w64 winpthreads library (git version)" _targets="i686-w64-mingw32 x86_64-w64-mingw32" -pkgver=11.0.0.r643.g57f796c +pkgver=11.0.0.r662.g14315e6 pkgrel=1 arch=(any) url="http://mingw-w64.sourceforge.net" -license=("custom") +license=("MIT") -#depends=() makedepends=(mingw-w64-gcc mingw-w64-binutils mingw-w64-crt) provides=(mingw-w64-winpthreads) @@ -24,41 +23,41 @@ conflicts=(mingw-w64-winpthreads) source=("git+https://git.code.sf.net/p/mingw-w64/mingw-w64") md5sums=("SKIP") -options=("staticlibs" "!strip" "!buildflags" "!emptydirs") +options=("staticlibs" "!strip" "!buildflags") pkgver() { - # move to the source directory - cd "${srcdir}/mingw-w64" + # move to the source directory + cd mingw-w64 - # use the most recent annotated tag reachable from the last commit - git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + # use the most recent annotated tag reachable from the last commit + git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - for _target in ${_targets}; do - # make a build directory and move into it - mkdir -p "${srcdir}/winpthreads-build-${_target}" && cd "${srcdir}/winpthreads-build-${_target}" - - # configure the build - "${srcdir}/mingw-w64/mingw-w64-libraries/winpthreads/configure" \ - --prefix="/usr/${_target}" \ - --host="${_target}" \ - --enable-static --enable-shared - - # build the library - make - done + for _target in ${_targets}; do + # make a build directory and move into it + mkdir -p "winpthreads-build-${_target}" && cd "winpthreads-build-${_target}" + + # configure the build + "${srcdir}/mingw-w64/mingw-w64-libraries/winpthreads/configure" \ + --prefix="/usr/${_target}" \ + --host="${_target}" \ + --enable-static --enable-shared + + # build the library + make + done } package() { - for _target in ${_targets}; do - # move to the build directory - cd "${srcdir}/winpthreads-build-${_target}" + for _target in ${_targets}; do + # move to the build directory + cd "winpthreads-build-${_target}" - # install the library - make DESTDIR="${pkgdir}" install + # install the library + make DESTDIR="${pkgdir}" install - # strip unneeded symbols from the DLLs - "${_target}-strip" --strip-unneeded "${pkgdir}/usr/${_target}/bin"/*.dll - done + # strip unneeded symbols from the DLLs + "${_target}-strip" --strip-unneeded "${pkgdir}/usr/${_target}/bin"/*.dll + done } |