summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLlewelyn Trahaearn2016-02-08 12:19:04 -0800
committerLlewelyn Trahaearn2016-02-08 12:19:04 -0800
commitf9aeb7c169aa279d7ad9d8e20ffc73b481f6bffe (patch)
treee101d9f825d73ac1e13a086c434f837d963a7db9
parentbcac8d8240a58ab28db05c81aceb92b2a67f8cba (diff)
downloadaur-f9aeb7c169aa279d7ad9d8e20ffc73b481f6bffe.tar.gz
Build tuning.
-rw-r--r--PKGBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ec2cf56b3f8..23f4c8422b5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,10 +21,13 @@ install=${pkgname}.install
source=("https://github.com/vovoid/vsxu/archive/v${pkgver}.tar.gz")
sha512sums=('e77d8e7300a43ceeb59cf39771f0d8ac8930cebffb4d25305a9e245fd5e2d668e126267227c5334f999688307f8b22cf30183c495137f7490942d78581d0d4a6')
+prepare() {
+ [[ -d build ]] || mkdir build
+}
+
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- [[ -d build ]] || mkdir build && cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
+ cd "${srcdir}/build"
+ cmake ../"${pkgname}-${pkgver}" -DCMAKE_INSTALL_PREFIX=/usr \
-DGLFW_LIBRARY=/usr/lib/libglfw2.so \
-DPNG_LIBRARY=/usr/lib/libpng12.so \
-DPNG_PNG_INCLUDE_DIR=/usr/include/libpng12
@@ -32,9 +35,9 @@ build() {
}
package() {
- cd "${pkgname}-${pkgver}/build"
+ cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
# License.
- install -Dm644 ../COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 "../${pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}