summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/postsrsd/PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/pcr/postsrsd/PKGBUILD b/pcr/postsrsd/PKGBUILD
index d42ed0ccb..d377f36ad 100644
--- a/pcr/postsrsd/PKGBUILD
+++ b/pcr/postsrsd/PKGBUILD
@@ -16,16 +16,20 @@ source=('https://github.com/roehling/postsrsd/archive/1.1.tar.gz' 'postsrsd.serv
md5sums=('5cde2c2ae7046347f5e17aef2ea8a4a8'
'64f31e8914f5063297371d36f699302d')
-build() {
+prepare() {
cd "$srcdir/${pkgname}-${pkgver}"
mkdir build
+}
+
+build() {
+ cd "$srcdir/${pkgname}-${pkgver}"
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DGENERATE_SRS_SECRET=OFF
make all
}
package() {
- cd "$srcdir/postsrsd/build"
+ cd "$srcdir/${pkgname}-${pkgver}/build"
make DESTDIR="$pkgdir/" install
rm -rf $pkgdir/usr/lib