summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf2c9d5516b3359e1f23c509909e7ed9d265e056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: aksr <aksr at t-com dot me>
pkgname=fish-irssi-git
pkgver=308.75f754f
pkgrel=1
pkgdesc='irssi FiSH plugin'
arch=('i686' 'x86_64')
url='https://github.com/falsovsky/FiSH-irssi'
license=('GPL')
groups=()
depends=('irssi' 'openssl' 'glib2')
makedepends=('git' 'cmake' 'irssi')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
install=fish-irssi-git.install
source=("$pkgname::git+$url")
md5sums=('SKIP')

pkgver() {
	cd $srcdir/$pkgname
	printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd $srcdir/$pkgname
	cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
	make
}

package() {
	cd $srcdir/$pkgname
	install -D -m755 src/libfish.so $pkgdir/usr/lib/irssi/modules/libfish.so
	install -D -m644 README $pkgdir/usr/share/doc/${pkgname%-*}/README
}