You are not logged in.

#1 2013-06-18 13:57:29

FleischKarussel
Member
Registered: 2013-06-13
Posts: 2

HTPC-Manager + python2-pil

Hello people.

I saw an interesting article on lifehacker.com & https://github.com/styxit/HTPC-Manager and it looks like a great way to manage a HTPC setup remotely.
I'm running an arch linux host as fileserver (and more) and a small ITX box with E350 box as xbmc client based on openelec.

Since reading this article I found out there are no PKGBUILDs for htpc-manager and python2-pil (python image library) so I tried to edit them for myself.
I'm already using alot of packages from AUR to suit my needs and hope to help to automate and help some other people with this new AUR PKGBUILDs.

For python2-pil I found someone who already did this in the past, I just modified the values to fit for the current version.
Source: https://github.com/chaoflow/Archlinux-P … l/PKGBUILD

python2-pil

# Maintainer: Florian Friesdorf <archlinux@chaoflow.net>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: simo <simo@archlinux.org>

pkgname=python2-pil
pkgver=1.1.7
pkgrel=1
pkgdesc="Python imaging library"
arch=('any')
url="http://www.pythonware.com/products/pil/index.htm"
license=('GPL')
depends=('python2' 'libjpeg' 'freetype2')
makedepends=('tk>=8.5.0')
optdepends=('tk>=8.5.0')
conflicts=('')
replaces=('')
source=(http://effbot.org/downloads/Imaging-${pkgver}.tar.gz)
md5sums=('fc14a54e1ce02a0225be8854bfba478e')

build() {
  cd ${srcdir}/Imaging-${pkgver}
  python2 setup.py build_ext
  python2 setup.py install --root=${pkgdir}
  mkdir -p ${pkgdir}/usr/include/python2.7/
  cp libImaging/*.h ${pkgdir}/usr/include/python2.7/

  # Install license
  install -m644 -D ${srcdir}/Imaging-${pkgver}/README \
                   ${pkgdir}/usr/share/licenses/${pkgname}/README

  # rename files colliding with non-suffixed version
  echo "Suffixing executables with -py24"
  for x in \
      pilconvert \
      pildriver \
      pilfile \
      pilfont \
      pilprint
  do
      mv ${pkgdir}/usr/bin/${x}.py ${pkgdir}/usr/bin/${x}-py27.py
  done
}

The second possibility would be, installing "python2-pip" and install PIL with "pip2 install pil".

HTPC Manager

# Maintainer: me

pkgname=htpcmanager-git
_gitname=HTPC-Manager
pkgver=9ec21d9
pkgrel=1
pkgdesc="Manage your Htpc from everywhere"
arch=('any')
url="http://htpc.io/"
license=('GPL3')
depends=('python2' 'python2-pil')
makedepends=('git')
install='htpcmanager.install'
#source=('git://github.com/styxit/HTPC-Manager.git' 'htpcmanager.service')
source=('git://github.com/styxit/HTPC-Manager.git')
#md5sums=('SKIP' '1122334455')
md5sums=('SKIP')

pkgver() {
  cd $_gitname
  git describe --always | sed 's|-|.|g'
}

package() {
  mkdir -p "${pkgdir}/opt/"
  cp -r "$srcdir/$_gitname" "${pkgdir}/opt/htpcmanager"

  #install -Dm644 "${srcdir}/htpcmanager.service" "${pkgdir}/usr/lib/systemd/system/htpcmananger.service"
}

Could you please give me your opinion if I'm on the right track for this duo of PKGBUILDs, perhaps python2-pip isn't neccessary?

greetings
FleischKarussel

Last edited by FleischKarussel (2013-06-18 13:59:37)

Offline

#2 2013-06-19 10:09:13

FleischKarussel
Member
Registered: 2013-06-13
Posts: 2

Re: HTPC-Manager + python2-pil

After some fiddling with the install und service files I've uploaded the Packages to AUR.

Please leave your comments there:

https://aur.archlinux.org/packages/?SeB=m&K=darude

Thank you and bye!

Offline

Board footer

Powered by FluxBB