summaryrefslogtreecommitdiffstats
path: root/main/xorg-cf-files/APKBUILD
blob: 87d93c8b3420dc29419de273787d044d872f9d48 (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: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=xorg-cf-files
pkgver=1.0.5
pkgrel=0
pkgdesc="Data files for the imake utility"
url="http://xorg.freedesktop.org/"
arch="noarch"
license="custom"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
source="${url}releases/individual/util/${pkgname}-${pkgver}.tar.bz2"

_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"
   ./configure \
       --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
   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}

md5sums="4a9cd7fc995ebf8f3cdad5395f9d8eba  xorg-cf-files-1.0.5.tar.bz2"
sha256sums="ed23b85043edecc38fad4229e0ebdb7ff80b570e746bc03a7c8678d601be7ed4  xorg-cf-files-1.0.5.tar.bz2"
sha512sums="139d2c51538257eac79118ea367cdfbebebcd095f353e784b61c109e008bf8e43eb4ef15bb0c8df74339dbed9d96af4c4d1e023c23d02d5de31dc2ea5b85ce5c  xorg-cf-files-1.0.5.tar.bz2"