summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik “Freso” S. Olesen2018-07-15 17:17:45 +0200
committerFrederik “Freso” S. Olesen2018-07-15 17:17:45 +0200
commit0824604d98d4cb7413cecf94aa8df608eac9c991 (patch)
treeb65342c4a97c0fc3fd4df5680293ab2ede184f64
parentc2b36bbb9223cba0cc0f584b11e246b29645d26d (diff)
downloadaur-0824604d98d4cb7413cecf94aa8df608eac9c991.tar.gz
Simplify paths in prepare() and package()
`cd` into main directory and use relative paths from there.
-rw-r--r--PKGBUILD27
1 files changed, 14 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2def0076627..4307d19b227 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,10 +28,10 @@ sha512sums=('de772c4403f82cd66283eb340bce2cb62d5a7fd946cdfc46fbab9e3ec0858c3b8e0
prepare() {
cd "${pkgname}-${pkgver}"
- patch -p1 -i "${srcdir}/build.patch"
- patch -p1 -i "${srcdir}/config_dir.patch"
- patch -p1 -i "${srcdir}/disable_version_check.patch"
- patch -p1 -i "${srcdir}/manifest.patch"
+ patch -p1 -i '../build.patch'
+ patch -p1 -i '../config_dir.patch'
+ patch -p1 -i '../disable_version_check.patch'
+ patch -p1 -i '../manifest.patch'
}
build() {
@@ -40,16 +40,17 @@ build() {
}
package(){
- install -Dm644 "${srcdir}/${pkgname}-${pkgver}/dist/${pkgname}.jar" "${pkgdir}/usr/share/${pkgname}/${pkgname}.jar"
- cp -a "${srcdir}/${pkgname}-${pkgver}/assets" "${pkgdir}/usr/share/${pkgname}/"
+ cd "${pkgname}-${pkgver}"
+ install -Dm644 "./dist/${pkgname}.jar" "${pkgdir}/usr/share/${pkgname}/${pkgname}.jar"
+ cp -a './assets' "${pkgdir}/usr/share/${pkgname}/"
- install -Dm755 "${srcdir}/${pkgname}_script" "${pkgdir}/usr/bin/${pkgname}"
- install -Dm644 "${srcdir}/${pkgname}-${pkgver}/src/chatty/gui/app_16.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/${pkgname}.png"
- install -Dm644 "${srcdir}/${pkgname}-${pkgver}/src/chatty/gui/app_64.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/${pkgname}.png"
- install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm755 "../${pkgname}_script" "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 './src/chatty/gui/app_16.png' "${pkgdir}/usr/share/icons/hicolor/16x16/apps/${pkgname}.png"
+ install -Dm644 './src/chatty/gui/app_64.png' "${pkgdir}/usr/share/icons/hicolor/64x64/apps/${pkgname}.png"
+ install -Dm644 "../${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
- install -Dm644 "${srcdir}/${pkgname}-${pkgver}/APACHE_LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/APACHE_LICENSE"
- install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LGPL" "${pkgdir}/usr/share/licenses/${pkgname}/LGPL"
- install -Dm644 "${srcdir}/${pkgname}-${pkgver}/README.md" "${pkgdir}/usr/share/licenses/${pkgname}/MIT"
+ install -Dm644 './APACHE_LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/APACHE_LICENSE"
+ install -Dm644 './LGPL' "${pkgdir}/usr/share/licenses/${pkgname}/LGPL"
+ install -Dm644 './README.md' "${pkgdir}/usr/share/licenses/${pkgname}/MIT"
}