summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9dccb0731c5228b5839f30b82dc5c92a387531c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=upx-git
pkgver=3.94.r143.g7a0514d9
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')
conflicts=('upx')
source=("git+https://github.com/upx/upx.git#branch=devel")
sha256sums=('SKIP')


prepare() {
  cd "upx"

  git submodule update --init --recursive --depth 1
}

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" "$pkgdir/usr/share/man/man1/upx.1"
}