summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58c58d9f4eb99a753f18cf83de0f7a3c4e6bce70 (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
# Maintainer: Masanori Ohgita <mp at ohgita dot info>
pkgname=libpafe-ruby
pkgver=0.0.8
pkgrel=1
pkgdesc='A library using the libpafe on ruby'
arch=('any')
url='http://homepage3.nifty.com/slokar/pasori/libpafe-ruby.html'
license=('GPL2')
depends=('libpafe' 'ruby')
source=("http://homepage3.nifty.com/slokar/pasori/${pkgname}-${pkgver}.tar.gz")
sha256sums=('496b5f6299c14b6b11e4bd8fb1f2bd093ed75a6fee23635a1eb257b762e216cc')

build() {
	cd "${srcdir}/${pkgname}/"
	if [ -f '.RUBYARCHDIR.time' ]; then
		rm '.RUBYARCHDIR.time'
	fi
	ruby extconf.rb
	make $MAKEFLAGS
}

check() {
	cd "${srcdir}/${pkgname}/"
	ruby -e 'require "./pasori.so"; puts "OKAY";'
}

package() {
	cd "${srcdir}/${pkgname}/"
	make DESTDIR="${pkgdir}" install
}