jobextra/unrar/PKGBUILD

57 lines
1.6 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgbase=unrar
pkgname=(unrar libunrar)
pkgver=6.2.8
pkgrel=01
epoch=1
url='https://www.rarlab.com/rar_add.htm'
source=(https://www.rarlab.com/rar/unrarsrc-$pkgver.tar.gz)
#prepare() {
# sed -e '/CXXFLAGS=/d' -e '/LDFLAGS=/d' -i unrar/makefile # Use system build flags
#}
build() {
cp -a unrar libunrar
export LDFLAGS+=' -pthread'
make -C libunrar lib
make -C unrar -j1
}
package_unrar() {
pkgdesc='The RAR uncompression program'
depends=(gcc-libs)
cd unrar
install -Dm755 unrar -t "$pkgdir"/usr/bin/
# install license
install -Dm644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_libunrar() {
pkgdesc='Library and header file for applications that use libunrar'
depends=(gcc-libs)
cd libunrar
install -Dm755 libunrar.so -t "$pkgdir"/usr/lib/
install -Dm644 dll.hpp -t "$pkgdir"/usr/include/unrar/
# install license
install -Dm644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(custom)
sha256sums=(1777e3d3b073815ff68a411ddb1ab76d0a4e1f58ecc7080035b27b52967ff911) # unrarsrc-6.2.7.tar.gz
## 4a42116a6e6809b3fa2ae3e7f6bf21435eadf9501d3e87c426ee2b9d61e22ae9 libunrar-1:6.2.8-01-x86_64.pkg.tar.lz
## 0f70b3a7d0c258f11da2eeb82bd28fb5e117d6add4cad5fd5ce74d465da9f99a unrar-1:6.2.8-01-x86_64.pkg.tar.lz