Skip to content

Instantly share code, notes, and snippets.

@rukai rukai/PKGBUILD
Created Jan 26, 2015

Embed
What would you like to do?
pkgname=miniircd-git
arch=('any')
pkgver=1
pkgrel=1
md5sums=('SKIP')
source=('git+https://github.com/jrosdahl/miniircd.git')
pkgver() {
cd $srcdir/miniircd
#generate nice pkgver from git repo
git describe | sed 's/\([^-]*-g\)/r\1/g' | sed 's/-/./g' | sed 's/^v//'
}
prepare() {
cd $srcdir/miniircd
#force use of python2
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' miniircd
}
package() {
dest=/usr/lib/python3.4/site-packages
cd $srcdir/miniircd
#create filesystem hierarchy within $pkgdir
install -m 755 -d $pkgdir/usr/bin/ $pkgdir/$dest
#install miniircd files
#install -m 755 miniircd $pkgdir/$dest/ #Minimal single file install
cp -R $srcdir/miniircd $pkgdir/$dest
#create symlink to executable
ln -sr $pkgdir/$dest/miniircd/miniircd $pkgdir/usr/bin/miniircd
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.