mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
24 lines
593 B
Bash
24 lines
593 B
Bash
pkgname=upx
|
|
pkgver=3.95
|
|
pkgrel=1
|
|
pkgdesc='Ultimate executable compressor.'
|
|
arch=('x86_64')
|
|
url='https://upx.github.io/'
|
|
license=('GPL')
|
|
depends=('zlib' 'ucl')
|
|
source=("https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver-src.tar.xz")
|
|
md5sums=('fa95336d9ddcaac3b494a1b6ae9d3557')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver-src
|
|
|
|
make UPX_LZMA_VERSION=0x465 UPX_LZMADIR="${srcdir}" CHECK_WHITESPACE=/bin/true all
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver-src
|
|
|
|
install -Dm0755 src/upx.out "${pkgdir}/usr/bin/upx"
|
|
install -Dm0644 doc/upx.1 "${pkgdir}/usr/share/man/man1/upx.1"
|
|
}
|