summaryrefslogtreecommitdiff
path: root/test/packages/pkg-split-a/PKGBUILD
blob: e9419762a74a775235a9b228f05756e2d07d10f2 (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
pkgbase=pkg-split-a
pkgname=('pkg-split-a1' 'pkg-split-a2')
pkgver=1
pkgrel=1
pkgdesc="A split package called ${pkgbase}"
arch=('i686' 'x86_64')
url='http://www.archlinux.org/'
license=('GPL')
depends=('glibc')
makedepends=('gcc')
source=('Makefile' 'test.c')
md5sums=('c6cb8dcc86253355fed559416d0c8dcf'
         '3c1e4279feb678fd9cabaccdb28e40d0')

build() {
	cd ${srcdir}
	make
}

package_pkg-split-a1() {
	cd ${srcdir}
	make install DESTDIR=${pkgdir} DESTBIN=${pkgname[0]}
}

package_pkg-split-a2() {
	cd ${srcdir}
	make install DESTDIR=${pkgdir} DESTBIN=${pkgname[1]}
}