# This PKGBUILD comes from the VDR4Arch project [https://github.com/vdr4arch] # OSCam-emu is an Oscam addon module to include emulator support and other functionality # The goal of this AUR Package is to be as much close as possible to the latest oscam-emu git commit # Author: Christopher Reimer # Maintainer: Luka Karinja pkgname=oscam-emu pkgver=11410 pkgrel=3 dir=oscam-emu pkgdesc="Open Source Conditional Access Module software" url="http://www.streamboard.tv/oscam" arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') license=('GPL3') depends=('libusb' 'openssl') makedepends=('git' 'pcsclite') conflicts=('oscam-git' 'oscam-svn') optdepends=('pcsclite: for use with PC/SC readers' 'ccid: PC/SC reader generic driver') install='oscam.install' source=("git+git://github.com/pinkflozd/oscam-emu.git#branch=oscam-emu" 'oscam.service' 'oscam.sysuser') md5sums=('SKIP' '596b902e3f4a66d39e7f993437feec74' 'be0d9d7a5fdd8cf4918c4ea91cebd989') #pkgver() { # cd "$srcdir/$dir" # git log -1 | grep git-svn-id | cut -d'@' -f2 | cut -d' ' -f1 #} build() { cd "$srcdir/$dir" ./config.sh --restore --enable WITH_SSL IPV6SUPPORT CARDREADER_STAPI5 make CONF_DIR=/var/lib/oscam \ USE_SSL=1 \ USE_LIBUSB=1 \ USE_PCSC=1 \ OSCAM_BIN=oscam \ LIST_SMARGO_BIN=list_smargo \ SVN_REV=$pkgver } package() { cd "$srcdir/$dir" #Install binaries install -Dm755 oscam "$pkgdir/usr/bin/oscam" install -Dm755 list_smargo "$pkgdir/usr/bin/list_smargo" #Install man-pages mkdir -p "$pkgdir/usr/share/man/man1/" mkdir -p "$pkgdir/usr/share/man/man5/" install -Dm644 Distribution/doc/man/*.1 "$pkgdir/usr/share/man/man1" install -Dm644 Distribution/doc/man/*.5 "$pkgdir/usr/share/man/man5" #Install service file install -Dm644 "${srcdir}/oscam.service" "$pkgdir/usr/lib/systemd/system/oscam.service" #Install sysuser config install -Dm644 "${srcdir}/oscam.sysuser" "$pkgdir/usr/lib/sysusers.d/oscam.conf" }