# This is an example PKGBUILD file. Use this as a start to creating your own, # and remove these comments. For more information, see 'man PKGBUILD'. # NOTE: Please fill out the license field for your package! If it is unknown, # then please put 'unknown'. # Maintainer: Sean Anderson pkgname=uclibc-ng pkgver=1.0.37 pkgrel=1 epoch= pkgdesc="A C library for embedded Linux" arch=(x86_64) url="https://uclibc-ng.org/" license=('LGPL2.1') groups=() depends=('linux-headers') makedepends=() checkdepends=() optdepends=() provides=() conflicts=() replaces=() backup=() options=('staticlibs') install= changelog= source=( "https://downloads.uclibc-ng.org/releases/$pkgver/uClibc-ng-$pkgver.tar.xz" ) noextract=() sha512sums=('e09cffe3462b292f1070a0ff92faef2a39e1f704b41c35c8fc71902ef335b8e357a58c35d1640481797df443b15c08d1e95dd0aa88b223158ab0850d67a2c771') prepare() { cd "uClibc-ng-$pkgver" ARCH=x86_64 make defconfig sed -i 's,KERNEL_HEADERS.*,KERNEL_HEADERS="/usr/include/",g' .config } build() { cd "uClibc-ng-$pkgver" make all } package() { cd "uClibc-ng-$pkgver" make PREFIX="$pkgdir" install }