# Maintainer: Chocobo1 pkgname=upx-git pkgver=4.0.2.r13.g15484aa2 pkgrel=1 pkgdesc="A free, portable, extendable, high-performance executable packer for several executable formats" arch=('i686' 'x86_64') url="https://upx.github.io/" license=('GPL2') depends=('gcc-libs' 'ucl' 'zlib') makedepends=('git') provides=("upx=$pkgver") conflicts=('upx') source=("git+https://github.com/upx/upx.git#branch=devel") sha256sums=('SKIP') prepare() { cd "upx" git submodule update --init --recursive } pkgver() { cd "upx" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "upx" make all } package() { cd "upx" install -Dm755 "src/upx.out" "$pkgdir/usr/bin/upx" install -Dm644 "doc/upx.1" -t "$pkgdir/usr/share/man/man1" }