summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMantas Mikul─Śnas2016-03-02 16:16:56 +0200
committerNarrat2016-03-24 00:22:41 +0100
commitf11829c9d6eba03c91b5550520e1e48337338629 (patch)
tree1f022d89bcc1b3fa817bee87299ed618842ccecd /PKGBUILD
parent12a707a3abff42e85826870e8851e7f3298e00e5 (diff)
downloadaur-f11829c9d6eba03c91b5550520e1e48337338629.tar.gz
add package()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1611abcc737..2a369d43427 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,12 +16,19 @@ md5sums=('e1528c48d3b2340b6c3ee83cfb427820'
'a672569c2caab2cc855cc7df1c9536d8'
'4fd3f09866fb4bd20098f1da5d011a42')
-build() {
+prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
- patch -Np1 -i "${srcdir}/scancache.cxx.patch" || return 1
+ patch -Np1 -i "${srcdir}/scancache.cxx.patch"
+}
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr
- make || return 1
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# copy sample config file