unrar: Expose library and header files

This commit is contained in:
eater 2021-12-21 22:39:09 +01:00 committed by paper
parent e141d1f547
commit 07c35aab51
3 changed files with 22 additions and 2 deletions

1
srcpkgs/libunrar Symbolic link
View file

@ -0,0 +1 @@
unrar

1
srcpkgs/libunrar-devel Symbolic link
View file

@ -0,0 +1 @@
unrar

View file

@ -1,7 +1,7 @@
# Template file for 'unrar'
pkgname=unrar
version=6.1.3
revision=1
revision=2
wrksrc=unrar
short_desc="Unarchiver for .rar files (non-free version)"
maintainer="skmpz <dem.procopiou@gmail.com>"
@ -16,9 +16,27 @@ do_build() {
-e 's/^\(LDFLAGS\)=\(.*\)/\1+=-lpthread \2/' \
-i makefile
make CXX="$CXX" LD="$LD" STRIP=: -f makefile
# early install of unrar because makefile deletes unrar on lib creation
vbin unrar
make -d CXX="$CXX" LD="$LD" STRIP=: -f makefile lib
}
do_install() {
vbin unrar
vlicense license.txt LICENSE
}
libunrar_package() {
short_desc+=" - shared library"
pkg_install() {
vinstall libunrar.so 0755 /usr/lib/
}
}
libunrar-devel_package() {
short_desc+=" - development files"
pkg_install() {
vinstall dll.hpp 644 /usr/include/unrar/
}
}