pkgname=upx pkgver=4.2.4 pkgrel=1 pkgdesc="Extendable, high-performance executable packer for several executable formats" arch=('x86_64') url="https://github.com/upx/upx" license=('GPL-2.0-or-later') depends=('zlib') makedepends=('cmake' 'perl') source=(https://github.com/upx/upx/releases/download/v${pkgver}/${pkgname}-${pkgver}-src.tar.xz) sha256sums=(5ed6561607d27fb4ef346fc19f08a93696fa8fa127081e7a7114068306b8e1c4) build() { cd ${pkgname}-${pkgver}-src local cmake_args=( -B flarebird-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64 ) cmake ${cmake_args[@]} cmake --build flarebird-build } package() { cd ${pkgname}-${pkgver}-src DESTDIR=${pkgdir} cmake --install flarebird-build }