aboutsummaryrefslogtreecommitdiffstats
path: root/testing/linux_logo/APKBUILD
blob: 8437cc20be6ad82446bd19b2b28706d387493d72 (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
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=linux_logo
pkgver=5.11
pkgrel=0
pkgdesc="Text-based logo and system information program"
url="http://www.deater.net/weave/vmwprod/linux_logo"
arch="all"
license="GPL"
depends="gettext"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://www.deater.net/weave/vmwprod/$pkgname/$pkgname-$pkgver.tar.gz
	alpinelinux.logo
	$pkgname.initd
	$pkgname.conf"

_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

	cp "$srcdir"/alpinelinux.logo logos/distributions/
	echo "./logos/distributions/alpinelinux.logo" >logo_config
	echo "./logos/distributions/gnu-linux.logo" >>logo_config
	echo "./logos/banner.logo" >>logo_config
	echo "./logos/classic.logo" >>logo_config
}

build() {
	cd "$_builddir"
	export LDFLAGS="$LDFLAGS -lintl"
	./configure --prefix=/usr
	make || return 1
}

package() {
	cd "$_builddir"
	make PREFIX="${pkgdir}/usr" install
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.conf "$pkgdir"/etc/
}

md5sums="8e52af520368980ceba978330881e36e  linux_logo-5.11.tar.gz
490d8222bf5b11770a042fd8fc37b4ff  alpinelinux.logo
072c6af5ce1ec477d1b9ac31ab4f65ab  linux_logo.initd
cd06a9c659d80c7dbd4af676e8ce18fa  linux_logo.conf"
sha256sums="f56634d7b6bebd6598705d973997435fdc9cb9115dea3cc1d63398c92ebe72d9  linux_logo-5.11.tar.gz
673517275bb58228a802af3c17b502aad85bb35943a5c5237b8ca3ebf8fb094e  alpinelinux.logo
b7611ae9d685158d66fe575a9575c7111470dedd4193486fbf621b079a5de0d5  linux_logo.initd
9695f48979b2c206d05aa3f10dfb677b49b0b7554db6e110482c686c34afd0b8  linux_logo.conf"
sha512sums="3c11d59eeb1ea613eb66d3ea5ef2d7c9ef906cb12430b9350570a6a1937ec174bdd974e6227358339c3fd2e0647a5066a0bea22289c4aa9bc8b03afb0033f114  linux_logo-5.11.tar.gz
3a1f3cc5e85f5914bbe4003b770325925e1ed6b2369705c3c8c52c7c5feb25ade8e3b168ec2078b2fd1f5ddbac5ab30a022ce871c1c0063b5e7bc26551c6a8a3  alpinelinux.logo
0c021418a4e7e31df3aada8bd3c7cebd97f8e812d086a45aaff5d5779650195e92e87072a3627a3bb50384f10fccafd78cd966c8daed6775bbe58f6305e6db53  linux_logo.initd
d4da673171c28c594f8f3fad1e7e3b218e48d27857c94509bdfc5df5ba45d07199c19b3326ee7c9dc8bdf1a67cfc22f84526cf3e13c4f1d4054b20b92bbb4b94  linux_logo.conf"