diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 25 insertions, 8 deletions
@@ -1,19 +1,27 @@ -# Maintainer: Shengyu Zhang <lastavengers at archlinuxcn dot org> +# Maintainer: Shengyu Zhang <arch at srain.im> pkgname=srain-dev -pkgver=0.525.8eaacef +pkgver=0.679.28fac2b pkgrel=1 -pkgdesc="Modern, beautiful IRC client written in GTK+ 3" +pkgdesc="Modern, beautiful IRC client written in GTK+ 3, develop and debug version" arch=('i686' 'x86_64') license=('GPL') -url="https://github.com/SilverRainZ/srain" -depends=('gtk3' 'python' 'curl' 'libnotify') +url="https://srain.im" makedepends=('git' 'make' 'gcc' 'pkg-config' 'gettext' 'imagemagick') +depends=('gtk3' 'python' 'curl' 'libnotify' 'libconfig' 'gdb') +optdepends=( + 'glib-networking: TLS connection support' + 'python-sphinx: for generating documentation' + 'python-urllib3: avatar and pastebin support' + 'python-requests: avatar and pastebin support' + ) conflicts=('srain') provides=('srain') source=("git+https://github.com/SilverRainZ/srain.git#branch=dev") sha256sums=('SKIP') +_prefix='/usr' + pkgver() { cd ${pkgname%-dev} echo "0.$(git rev-list --count HEAD).$(git describe --always)" @@ -22,13 +30,22 @@ pkgver() { build() { cd ${pkgname%-dev} - mkdir build || true - ./configure --prefix=/usr --config-dir=/etc --disable-debug + ./configure --prefix=${_prefix} --config-dir=/etc --enable-debug make + make doc } package() { cd ${pkgname%-dev} - make DESTDIR=$pkgdir install + make DESTDIR=${pkgdir} install + make DESTDIR=${pkgdir} install-doc + mv ${pkgdir}${_prefix}/bin/srain{,-dev} + + cat << EOF > ${pkgdir}${_prefix}/bin/srain +!/bin/sh +gdb ${pkgdir}${_prefix}/bin/srain-dev -ex 'r' -ex 'bt' -ex 'q' +EOF + + chmod 755 ${pkgdir}${_prefix}/bin/srain } |