diff options
author | osfans | 2017-05-15 13:34:55 +0800 |
---|---|---|
committer | osfans | 2017-05-15 13:34:55 +0800 |
commit | 82e4f923f1f912347bb8938bf28bb723bb1e257a (patch) | |
tree | 7c29e7b0401b234d270c1e4f44a373d268bd1e8b /PKGBUILD | |
parent | 5a8eabec13908dba669b42cf1a7eac9e7efc167c (diff) | |
download | aur-mingw-w64-uchardet.tar.gz |
Update to 0.0.6
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 23 |
1 files changed, 9 insertions, 14 deletions
@@ -1,34 +1,29 @@ # Maintainer: osfans <waxaca@163.com> _pkgname=uchardet -pkgname=mingw-w64-${_pkgname}-git -pkgver=r191.e6be228 +pkgname=mingw-w64-${_pkgname} +pkgver=0.0.6 pkgrel=1 pkgdesc="Encoding detector library ported from Mozilla (mingw-w64)" arch=(any) -url="https://github.com/BYVoid/uchardet" +url='https://www.freedesktop.org/wiki/Software/uchardet' license=('MPL') -makedepends=('git' 'mingw-w64-cmake' 'make') +makedepends=('mingw-w64-cmake' 'make') options=(!strip !buildflags staticlibs) -source=('uchardet::git+https://github.com/BYVoid/uchardet.git') -md5sums=('SKIP') +source=("https://www.freedesktop.org/software/${_pkgname}/releases/${_pkgname}-${pkgver}.tar.xz") +sha512sums=('eceeadae060bf277e298d709856609dde32921271140dc1fb0a33c7b6e1381033fc2960d616ebbd82c92815936864d2c0743b1b5ea1b7d4a200df87df80d6de5') _architectures="i686-w64-mingw32 x86_64-w64-mingw32" -pkgver() { - cd "$srcdir/$_pkgname" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" -} - build() { #unset LDFLAGS - cd "$srcdir/$_pkgname" + cd ${_pkgname}-${pkgver} for _arch in ${_architectures}; do - ${_arch}-cmake -Bbuild-${_arch} -H. + ${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -Bbuild-${_arch} -H. make -Cbuild-${_arch} done } package() { - cd "$srcdir/$_pkgname" + cd ${_pkgname}-${pkgver} for _arch in ${_architectures}; do make -Cbuild-${_arch} DESTDIR="$pkgdir" install ln -s libuchardet.dll $pkgdir/usr/${_arch}/bin/uchardet.dll |