Christoph Reiter aecf770ad1 More old base-devel rebuilds
to get rid of the group
2022-11-14 08:40:49 +01:00

58 lines
1.7 KiB
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgbase=unrar
pkgname=('unrar' 'libunrar' 'libunrar-devel')
pkgver=6.1.4
pkgrel=2
arch=('i686' 'x86_64')
url="https://www.rarlab.com/rar_add.htm"
license=('custom')
options=('staticlibs' '!makeflags')
depends=('gcc-libs')
makedepends=('make' 'gcc')
source=("https://www.rarlab.com/rar/unrarsrc-${pkgver}.tar.gz"
'build-dll.patch')
sha256sums=('c0ed58629243961c3f1ec90c08b11ff93261e568dbfdce2bf3b759ee7a4a3b7c'
'8c618b85478f5b9bb764c523670d0d60a6b14a382919beadf357120d045313b4')
prepare() {
cd ${pkgname}
patch -p1 -i ${srcdir}/build-dll.patch
#autoreconf -fi
}
build() {
cd ${pkgname}
cp -a ${srcdir}/unrar ${srcdir}/libunrar
make -C "${srcdir}"/libunrar lib CXXFLAGS="${CXXFLAGS}"
make CXXFLAGS="${CXXFLAGS}" STRIP="true"
}
package_unrar() {
pkgdesc="The RAR uncompression program"
depends=('gcc-libs')
cd "${srcdir}/${pkgbase}"
install -Dm755 unrar.exe "${pkgdir}/usr/bin/unrar.exe"
# install license
install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_libunrar() {
pkgdesc="Library file for applications that use libunrar"
depends=('gcc-libs')
cd "${srcdir}/libunrar"
install -Dm755 msys-unrar.dll "${pkgdir}/usr/bin/msys-unrar.dll"
# install license
install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_libunrar-devel() {
pkgdesc="Import library and header file for applications that use libunrar"
depends=('libunrar')
cd "${srcdir}/libunrar"
install -Dm644 libunrar.dll.a "${pkgdir}/usr/lib/libunrar.dll.a"
install -Dm644 libunrar.a "${pkgdir}/usr/lib/libunrar.a"
install -Dm644 dll.hpp "${pkgdir}/usr/include/unrar/dll.hpp"
}