summaryrefslogtreecommitdiff
path: root/skalibs-musl/PKGBUILD
blob: c622649e05986eb2a35ff0f9afffdff454d622c2 (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
# Maintainer: Lukas Braun <koomi+aur at hackerspace-bamberg dot de>
# Contributor: David Arroyo <droyo@aqwari.us>
pkgname=skalibs-musl
pkgver=2.12.0.1
pkgrel=1
pkgdesc="A set of general-purpose C programming libraries"
arch=(aarch64 'i686' 'x86_64')
url="http://www.skarnet.org/software/skalibs"
license=('custom:ISC')
makedepends=(musl)
provides=(skalibs=2.12.0.1)
replaces=(skalibs)
conflicts=(skalibs)
options=('staticlibs')
changelog=CHANGELOG
source=(${url}/skalibs-$pkgver.tar.gz)
sha256sums=('3e228f72f18d88c17f6c4e0a66881d6d3779427b7e7e889f3142b6f26da30285')

build() {
  cd "$srcdir/skalibs-$pkgver"

  CC="musl-gcc" ./configure --disable-shared
  make
}

package() {
  cd "$srcdir/skalibs-$pkgver"

  make DESTDIR="$pkgdir/" install
  install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}