aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/cjs/APKBUILD
blob: cfafc50f5410f7494070127f2114ff8efe482c35 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=cjs
pkgver=2.0.0
pkgrel=0
pkgdesc="Javascript Bindings for Cinnamon"
url="https://github.com/linuxmint/cjs"
arch="all"
license="GPL"
depends=""
depends_dev="gobject-introspection-dev js-dev dbus-glib-dev"
makedepends="$depends_dev autoconf automake libtool gnome-common"
install=""
subpackages="$pkgname-dev"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/linuxmint/cjs/archive/${pkgver}.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./autogen.sh \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*/*.la
}

md5sums="f40addaca0e9cf55d80a31fe5d5bac7c  cjs-2.0.0.tar.gz"
sha256sums="2fea6c491e6ce8567201f14c0e926181154d798d4811dd65da477c014bfb2a9a  cjs-2.0.0.tar.gz"
sha512sums="0faec81c031e1ae54c4384f5a843b52ce6952d1c3334104914c40aa3ba8b34ab84c335efbdfeb1b99728c195a2f3f204cfe07ce887aa1a103e4151b20c9c14a8  cjs-2.0.0.tar.gz"