summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormvidaldp2020-10-18 04:18:26 +0200
committermvidaldp2020-10-18 04:18:26 +0200
commit4c996710d95452bcb5cb25dc5172cbe2ed0d8df3 (patch)
tree5dd43d357c17f856857478c3593515a8b01d9279
parentab478a2c8ec3b351e8cfb59148421418dfda47cb (diff)
downloadaur-4c996710d95452bcb5cb25dc5172cbe2ed0d8df3.tar.gz
Improve PKGBUILD and .SRCINFO
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD24
2 files changed, 22 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 20c5924893a..0d4bc42e791 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,8 +11,8 @@ pkgbase = liblsl
depends = gcc-libs
provides = liblsl
conflicts = liblsl
- source = liblsl-1.13.1.tar.gz::https://github.com/sccn/liblsl/archive/1.13.1.tar.gz
- md5sums = 23dee2f87cb55ca867c24a389ac6525c
+ source = liblsl-1.13.1::git+ssh://git@github.com/sccn/liblsl.git#tag=1.13.1
+ md5sums = SKIP
pkgname = liblsl
diff --git a/PKGBUILD b/PKGBUILD
index baac186f2da..880765bee04 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,8 +11,8 @@ provides=($pkgname)
conflicts=($pkgname)
depends=('gcc-libs')
makedepends=('git' 'cmake' 'patchelf')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sccn/${pkgname}/archive/${pkgver}.tar.gz")
-md5sums=('23dee2f87cb55ca867c24a389ac6525c')
+source=("${pkgname}-${pkgver}::git+ssh://git@github.com/sccn/liblsl.git#tag=${pkgver}")
+md5sums=('SKIP')
prepare() {
@@ -27,11 +27,27 @@ build() {
}
package() {
- install -Dm 755 $srcdir/$pkgname-$pkgver/build/liblsl.so.$pkgver $pkgdir/usr/lib/liblsl.so.$pkgver
- ln -rs -T $pkgdir/usr/lib/liblsl.so.$pkgver $pkgdir/usr/lib/liblsl.so
+ mkdir -p $pkgdir/opt/LSL/bin
+ mkdir -p $pkgdir/opt/LSL/include
+ mkdir -p $pkgdir/opt/LSL/lib
+ mkdir -p $pkgdir/opt/LSL/share/licenses
+ install -Dm 755 $srcdir/$pkgname-$pkgver/build/$pkgname.so.$pkgver $pkgdir/usr/lib/$pkgname.so.$pkgver
+ ln -rs -T $pkgdir/usr/lib/$pkgname.so.$pkgver $pkgdir/usr/lib/$pkgname.so
+ ln -rs -T $pkgdir/usr/lib/$pkgname.so $pkgdir/opt/LSL/lib/$pkgname.so.$pkgver
+ ln -rs -T $pkgdir/opt/LSL/lib/$pkgname.so.$pkgver $pkgdir/opt/LSL/lib/$pkgname.so
+ install -Dm 755 $srcdir/$pkgname-$pkgver/build/LSLConfig.cmake $pkgdir/opt/LSL/LSLConfig.cmake
+ install -Dm 755 $srcdir/$pkgname-$pkgver/build/LSLTargets.cmake $pkgdir/opt/LSL/LSLTargets.cmake
+ install -Dm 755 $srcdir/$pkgname-$pkgver/build/LSLCMake.cmake $pkgdir/opt/LSL/LSLCMake.cmake
+ install -Dm 755 $srcdir/$pkgname-$pkgver/build/LSLConfigVersion.cmake $pkgdir/opt/LSL/LSLConfigVersion.cmake
+ install -Dm 755 $srcdir/$pkgname-$pkgver/build/CPackConfig.cmake $pkgdir/opt/LSL/CPackConfig.cmake
+ install -Dm 755 $srcdir/$pkgname-$pkgver/build/CPackSourceConfig.cmake $pkgdir/opt/LSL/CPackSourceConfig.cmake
patchelf --set-rpath /usr/lib $srcdir/$pkgname-$pkgver/build/lslver
install -Dm 755 $srcdir/$pkgname-$pkgver/build/lslver $pkgdir/usr/bin/lslver
+ ln -rs -T $pkgdir/usr/bin/lslver $pkgdir/opt/LSL/bin/lslver
install -Dm 755 $srcdir/$pkgname-$pkgver/include/lsl_c.h $pkgdir/usr/include/lsl_c.h
+ ln -rs -T $pkgdir/usr/include/lsl_c.h $pkgdir/opt/LSL/include/lsl_c.h
install -Dm 755 $srcdir/$pkgname-$pkgver/include/lsl_cpp.h $pkgdir/usr/include/lsl_cpp.h
+ ln -rs -T $pkgdir/usr/include/lsl_cpp.h $pkgdir/opt/LSL/include/lsl_cpp.h
install -Dm 644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ ln -rs -T $pkgdir/usr/share/licenses/$pkgname/LICENSE $pkgdir/opt/LSL/share/licenses/LICENSE
} \ No newline at end of file