summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 347182208796ef6d3272d7efb7d5d7d17666dbce (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
# Maintaner: sgerwk <sgerwk at aol dot com>
# package script file for archlinux
# makepkg -p THISFILE
pkgname=libllfat
pkgver=0.1.8
pkgrel=1
pkgdesc="library for low-level access to a FAT12/16/32 filesystem"
license=(GPL3)
arch=('x86_64' 'i686')
depends=(glibc)
makedepends=('gcc' 'make')
url="http://github.com/sgerwk/libllfat"
source=(git+https://github.com/sgerwk/libllfat#tag=v$pkgver)
sha256sums=('SKIP')

build() {
        cd "$pkgname"
	make || return 1
}

check() {
        cd "$pkgname"
	return $(test -x build/fattool)
}

package() {
        cd "$pkgname"
        make DESTDIR="$pkgdir" install || return 1
}