summaryrefslogtreecommitdiff
path: root/skip/unrar/unrar.xibuild
blob: 2d2500abc194327a121a703002f273d5852d0db8 (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
#!/bin/sh

NAME="unrar"
DESC="RAR uncompression program"

MAKEDEPS="make "
DEPS="musl "

PKG_VER=6.0.7
SOURCE="https://www.rarlab.com/rar/unrarsrc-$PKG_VER.tar.gz"
ADDITIONAL="makefile.patch"

prepare () {
    apply_patches
    touch unrar
}

build () {
    make CXX="${CXX:-g++}" STRIP=: -f makefile
}

package () {
    make PREFIX=/usr DESTDIR=$PKG_DEST install

    install -Dm644 license.txt \
		"$PKG_DEST"/usr/share/licenses/unrar/license.txt
}