Yang Kun 3c0a3948bc
gputils: new package (#23806)
Co-authored-by: Yang Kun <193369907+omikrun@users.noreply.github.com>
2025-03-30 08:33:26 +02:00

34 lines
911 B
Bash

_realname=gputils
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.5.2
pkgrel=1
pkgdesc='The GNU PIC Utilities for the Microchip PIC microcontrollers family (mingw-w64)'
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
url='https://gputils.sourceforge.net'
license=('spdx:GPL-2.0-or-later')
makedepends=("${MINGW_PACKAGE_PREFIX}-cc")
source=("https://downloads.sourceforge.net/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('62a215e7d5575cd488a5ada66e5708ff402634abe86a9b39e4dbdb19c986ab7e')
build() {
cd "${_realname}-${pkgver}"
./configure \
--prefix="${MINGW_PREFIX}" \
--build="${MINGW_CHOST}" \
--host="${MINGW_CHOST}" \
--disable-html-doc
make
}
package() {
cd "${_realname}-${pkgver}"
make install DESTDIR="${pkgdir}"
install -Dm644 COPYING -t "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}"
}