pkgname=vlmcsd pkgver=svn1113 pkgrel=1 pkgdesc="KMS Emulator in C" arch=('i686' 'x86_64' 'armv6h') url="http://forums.mydigitallife.info/threads/50234" license=('custom') source=("https://github.com/Wind4/vlmcsd/archive/${pkgver}.tar.gz" "${pkgname}.service") sha256sums=('62f55c48f5de1249c2348ab6b96dabbe7e38899230954b0c8774efb01d9c42cc' 'e13a82e4521756f3fd5238422db9dae0cb326e4099d890fe74d1b9b876145497') build() { cd "${srcdir}/${pkgname}-${pkgver}" make -f GNUmakefile VLMCSD_VERSION=${pkgver} } package() { install -Dm644 ${source[1]} "${pkgdir}"/usr/lib/systemd/system/${source[1]} cd "${srcdir}/${pkgname}-${pkgver}" install -Dm755 bin/${pkgname} "${pkgdir}"/usr/bin/${pkgname} install -Dm644 etc/${pkgname}.ini "${pkgdir}"/etc/${pkgname}.ini install -Dm644 etc/${pkgname}.kmd "${pkgdir}"/etc/${pkgname}.kmd install -Dm644 man/${pkgname}.7 "${pkgdir}"/usr/share/man/man7/${pkgname}.7 install -Dm644 man/${pkgname}.8 "${pkgdir}"/usr/share/man/man8/${pkgname}.8 }