Skip to content

Instantly share code, notes, and snippets.

@artixnous
Created November 20, 2017 09:56
Show Gist options
  • Save artixnous/a9e3d9092c5f3e49e841d2c58e179e6f to your computer and use it in GitHub Desktop.
Save artixnous/a9e3d9092c5f3e49e841d2c58e179e6f to your computer and use it in GitHub Desktop.
pisg-0.80-preview2
# Maintainer: Christos Nouskas <[email protected]>
# Contributor: Szu-Han Chen <[email protected]>
# Contributor: Eduard "bekks" Warkentin <[email protected]>
pkgname=pisg
pkgdesc="An irc log parser"
pkgver=0.80
extraver=preview2
_fullver=$pkgver-$extraver
pkgrel=1
url="https://pisg.github.io/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('perl')
backup=('etc/pisg/pisg.cfg')
source=("$pkgname-$_fullver.tar.gz::https://github.com/PISG/$pkgname/archive/$_fullver.tar.gz")
install=$pkgname.install
sha256sums=('d0c92d69450c26b40ae6ca30cbb892dd7aec96a84179cd003f9503331e599ade')
package() {
mkdir -p "${pkgdir}/etc"
mkdir -p "${pkgdir}/usr/bin/"
echo $pkgname
echo $_fullver
cd "${srcdir}/$pkgname-$_fullver"
install -Dm755 pisg "${pkgdir}/usr/bin/"
mkdir -p ${pkgdir}/usr/share/$pkgname/{lang,gfx,layout,scripts/{addalias,pum}}
install -Dm644 pisg.cfg "${pkgdir}/etc/"
install -Dm644 README.md lang.txt LICENSE.md "${pkgdir}/usr/share/$pkgname/"
cd scripts
install -Dm755 addalias/addalias.pl "${pkgdir}/usr/share/$pkgname/scripts/addalias/"
install -Dm644 addalias/README "${pkgdir}/usr/share/$pkgname/scripts/addalias/"
install -Dm755 pum/pum.pl "${pkgdir}/usr/share/$pkgname/scripts/pum/"
install -Dm644 pum/pum.conf "${pkgdir}/usr/share/$pkgname/scripts/pum/"
install -Dm644 crontab *.pl *.awk *.tcl *.sed *.mrc *.txt "${pkgdir}/usr/share/$pkgname/scripts/"
cd ../docs
mkdir -p "${pkgdir}/usr/share/doc/$pkgname/dev/"
install -Dm644 dev/* "${pkgdir}/usr/share/doc/$pkgname/dev/"
find . -maxdepth 1 -type f -exec install -Dm644 {} "${pkgdir}/usr/share/doc/${pkgname}" \;
cd ../modules
perldir="$(perl -V:vendorarch | cut -d"'" -f2)"
mkdir -p "${pkgdir}${perldir}/Pisg/Parser/Format"
install -Dm644 Pisg/Parser/Format/*.pm "${pkgdir}${perldir}/Pisg/Parser/Format/"
install -Dm644 *.pm "${pkgdir}${perldir}/"
install -Dm644 Pisg/*.pm "${pkgdir}${perldir}/Pisg/"
install -Dm644 Pisg/Parser/*.pm "${pkgdir}${perldir}/Pisg/Parser/"
# install -Dm644 ${srcdir}/$pkgname-$_fullver/gfx/*.png "${pkgdir}/etc/$pkgname/gfx/"
install -Dm644 ${srcdir}/$pkgname-$_fullver/lang/* "${pkgdir}/usr/share/$pkgname/lang/"
install -Dm644 ${srcdir}/$pkgname-$_fullver/layout/*.css "${pkgdir}/usr/share/$pkgname/layout/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment