summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 398d66104c8a801bcc55deb7416fb6a52679c527 (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
# Maintainer: Mike Pento <mpento@darkforge.net>

pkgname=libast
pkgver=0.7
pkgrel=4
pkgdesc="The Library of Assorted Spiffy Things."
arch=('i686' 'x86_64')
url="https://github.com/mej/libast"
license=('BSD')
depends=('imlib2' 'pcre' 'libsm')
options=('!libtool')
source=(https://github.com/mej/libast/archive/refs/tags/${pkgver}.tar.gz LICENSE.txt snprintf.patch)
md5sums=('a3e13cc80ffeff4b345fd8aa73e44bda'
         '97071898559acc4f900ceb6cb9579492'
	 'bff8084e2829e63a47b00d9e06366e24')

build() {
	cd ${srcdir}/${pkgname}-${pkgver}

	# hack of a patch for snprintf.c includes
	patch --verbose src/snprintf.c < ../../snprintf.patch

	# args pass through to configure
	./autogen.sh --prefix=/usr --with-x
	make
}

package() {
	cd ${srcdir}/${pkgname}-${pkgver}

	make prefix=${pkgdir}/usr install
	install -Dm644 ${srcdir}/LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}