summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJonas Heinrich2020-12-31 12:23:47 +0000
committerJonas Heinrich2020-12-31 12:23:47 +0000
commitafce2e0e9f28a0bd9e4bfaaab22b1297c9260f3a (patch)
treea9387c82a36700b8054b1341104a980a4d2b0cb0 /PKGBUILD
parentd01164b524199d6bf579d1c6e186325c914a8198 (diff)
downloadaur-chdkptp-svn.tar.gz
enable gui support
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 16 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1045751b0001..b9edf7ccb4fc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,21 +4,17 @@
_pkgname=chdkptp
pkgname=${_pkgname}-svn
pkgver=r978
-pkgrel=1
+pkgrel=2
pkgdesc="chdkptp is a client application for the CHDK"
arch=(x86_64)
url="https://www.assembla.com/spaces/chdkptp"
license=('GPL' 'MIT')
-depends=('lua53' 'libusb-compat')
-makedepends=('subversion')
+depends=('lua53' 'libusb-compat' 'lua53-lgi')
+makedepends=('subversion' 'lua53-lgi')
provides=('chdkptp')
conflicts=('chdkptp')
-source=("svn+https://subversion.assembla.com/svn/chdkptp/trunk"
- "chdkptp.sh"
- "chdkptp-gui.sh")
-sha512sums=('SKIP'
- 'dc906ba525ff1dbfece6f8addc4ae60486c72f2acc1b548a2fd99b7e857c491fc98e465d0e98e762fab2da05c1544a555d2634b61b666fd164893f43c5f53fd7'
- 'fece021b0c976c0cc6127d331ceb7f20bd63abba3435f23363745d4f459c5e9573b09623368d8d7b401fb4d5ee1a9bd1d42fa7c1a803c25e0eaa41c04063590d')
+source=("svn+https://subversion.assembla.com/svn/chdkptp/trunk")
+sha512sums=('SKIP')
pkgver() {
cd "$srcdir/trunk"
@@ -26,19 +22,26 @@ pkgver() {
printf "r%s" "${ver//[[:alpha:]]}"
}
+prepare() {
+ cd "$srcdir/trunk"
+ sed -i '8iCHDKPTP_DIR=/usr/lib/chdkptp' chdkptp.sh
+}
+
build() {
cd "$srcdir/trunk"
- make LUA_LIB=lua5.3 LUA_INCLUDE_DIR=/usr/include/lua5.3
+ make \
+ LUA_LIB=lua5.3 \
+ LUA_INCLUDE_DIR=/usr/include/lua5.3 \
+ GUI=1 \
+ GTK_SUPPORT=1
}
package() {
cd "$srcdir/trunk"
install -Dm755 chdkptp $pkgdir/usr/lib/chdkptp/chdkptp
- #install -Dm755 chdkptp_gui $pkgdir/usr/lib/chdkptp/chdkptp_gui
install -dm644 "$pkgdir/usr/lib/chdkptp/lua/extras"
install -m644 lua/*.lua "$pkgdir"/usr/lib/chdkptp/lua/
install -m644 lua/extras/*.lua "$pkgdir"/usr/lib/chdkptp/lua/extras/
- install -Dm755 "$srcdir"/chdkptp.sh "$pkgdir"/usr/bin/chdkptp
- install -Dm755 "$srcdir"/chdkptp-gui.sh "$pkgdir"/usr/bin/chdkptp-gui
+ install -Dm755 chdkptp.sh "$pkgdir"/usr/bin/chdkptp
}