Skip to content

Commit

Permalink
[reflector-simple] get app version from expac instead of PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-192 committed Jun 17, 2024
1 parent 6520a6f commit 14c44ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions reflector-simple/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

pkgname=reflector-simple
pkgdesc="Simple GUI wrapper for 'reflector'."
pkgver=2023
pkgrel=4
pkgver=2024
pkgrel=1
arch=('any')
license=('GPL')
depends=(
Expand Down Expand Up @@ -33,7 +33,7 @@ source=(
$_url/mirrorlist-rank-info
$_url/eos-latest-arch-mirrorlist
)
sha512sums=('957e5c8967083d031a032f870edbdd36b34f2149d5cbaa10452a3fbdc3f4d42523b8c1e5a5222d36a12922a70ef804699c03f669e33148484c107cc0eb091825'
sha512sums=('e13ac2cdb1196b90d713b5ac614647f7840e38555d651dea247c0fbc37dca43170952cbebb10d3c2b09660a870dcc1bdae56d1e7531b5809df931206d901f441'
'3435d083e8df72f17a291cca4c3cc62ac7824d1f528e746bf689f8962159fbdd97b6a57d45b3b379a2191e2e49536b77040b13d704a58753fbed00017f4403d0'
'aa149c8fc273e6a9fb5ddc38bde8a37b8fb095ec8877a324b957be57e156ef583adbed5988f0184ef06d5d09ec13e01e4a58b81fffef5d6d316405a3881895c3'
'8b101caac9f38238d30f293176a09f1bb483ec1cdc474ef126ec087a8b548b50eee5c35617f0616dd1618e4dce72e14b70270f47658577e20e04a133405510aa'
Expand All @@ -43,7 +43,7 @@ sha512sums=('957e5c8967083d031a032f870edbdd36b34f2149d5cbaa10452a3fbdc3f4d42523b
package() {
cd $srcdir

sed -i $pkgname -e "s|local VERSION_INFO=.*$|local VERSION_INFO=${pkgver}-$pkgrel|"
# sed -i $pkgname -e "s|local VERSION_INFO=.*$|local VERSION_INFO=${pkgver}-$pkgrel|"

install -d $pkgdir/usr/bin
install -d $pkgdir/etc
Expand Down
2 changes: 1 addition & 1 deletion reflector-simple/reflector-simple
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ Main() {
--testing) internal_testing=yes ;;
esac
local progname=reflector-simple
local VERSION_INFO="added by PKGBUILD"
local VERSION_INFO=$(expac %v $progname)
local ARCH_SITE=https://www.archlinux.org
local free_params_file="$HOME/.config/reflector-simple-free-params.txt"

Expand Down

0 comments on commit 14c44ea

Please sign in to comment.