aboutsummaryrefslogtreecommitdiffstats
path: root/testing/trayer/APKBUILD
blob: 3943375108aa01374aa8cc4d8108e83cef62541e (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer:
pkgname=trayer
pkgver=1.0
pkgrel=1
pkgdesc="A lightweight GTK2-based systray"
url="https://gna.org/projects/fvwm-crystal/"
arch="all"
license="GPL MIT"
depends=""
depends_dev="libxmu-dev gtk+2.0-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://download.gna.org/fvwm-crystal/trayer/${pkgver}/${pkgname}-${pkgver}.tar.gz
	makefile.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -i 's/$(LIBS) $(OBJ) $(SYSTRAYOBJ)/$(OBJ) $(SYSTRAYOBJ) $(LIBS) -lX11/' Makefile
}

build() {
	cd "$_builddir"
	make -j1 CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}

package() {
	cd "$_builddir"
	make PREFIX="${pkgdir}/usr" install
	install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

md5sums="e1b0b6464f991f2c296561e377585867  trayer-1.0.tar.gz
5c1ca3b37ddcbc121a14fcc58406ae5f  makefile.patch"
sha256sums="64f3b7040a7a563ca4b6924efd950f10c928af7f3535b6f4a00f8bbe0b19484d  trayer-1.0.tar.gz
d5891d4eaaec101759c3604bae9974693add7ec89b954acce3230514d4110f4f  makefile.patch"
sha512sums="9903a78a1c185515e87552732449937daa23187d54a3ccbf19bc9fc569d6a440600c879fe78edbea3eff6b66a1f3fc5054d474dfeaca53af3521a6f18b454049  trayer-1.0.tar.gz
e5147767263a6642c1f1cd79bbffadc950e581fba088e8dc8487aa4f8ea8c035b8fc19a02f19fdf83fad01e7e3e09df5238c99ad962a1cf24ad0d41b33ccdb8c  makefile.patch"